@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: system-ui, sans-serif;
  background: #0f1117;
  color: #e8e8f0;
  min-height: 100vh;
}

/* HEADER */
header {
  background: #161b22;
  border-bottom: 1px solid #21262d;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: #58a6ff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #58a6ff;
}

.header-right {
  font-size: 0.8rem;
  color: #8b949e;
}

/* CONTAINER */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* PAGE TITLE */
.page-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #f0f6fc;
}

.page-subtitle {
  color: #8b949e;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* BUTTONS */
button {
  padding: 0.55rem 1.2rem;
  border-radius: 7px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

button:hover { opacity: 0.85; }

.btn-primary { background: #58a6ff; color: #000; }
.btn-secondary { background: #21262d; color: #e8e8f0; border: 1px solid #30363d; }
.btn-danger { background: #f85149; color: #fff; }
.btn-success { background: #3fb950; color: #000; }
.btn-flip { background: #7c6aff; color: #fff; }

/* TOOLBAR */
.toolbar {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

/* TEXTAREAS */
textarea {
  width: 100%;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  color: #e8e8f0;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  padding: 1rem;
  resize: vertical;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.2s;
}

textarea:focus { border-color: #58a6ff; }

/* INPUTS */
input[type=text],
input[type=number] {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 7px;
  color: #e8e8f0;
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type=text]:focus,
input[type=number]:focus { border-color: #58a6ff; }

select {
  background: #161b22;
  border: 1px solid #21262d;
  color: #e8e8f0;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}

/* EDITOR GRID */
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.editor-box label {
  display: block;
  font-size: 0.75rem;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* STATUS */
.status {
  font-size: 0.82rem;
  min-height: 1.2rem;
  margin-top: 0.4rem;
}

.status.ok { color: #3fb950; }
.status.err { color: #f85149; }

/* SECTION BOX */
.section-box {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.section-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #f0f6fc;
}

/* TABS */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.5rem 1.2rem;
  border-radius: 7px;
  border: 1px solid #21262d;
  background: transparent;
  color: #8b949e;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tab.active {
  background: #58a6ff;
  color: #000;
  border-color: #58a6ff;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid #21262d;
  margin: 3rem 0;
}

/* CONTENT SECTION */
.content-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #f0f6fc;
}

.content-section p {
  color: #8b949e;
  line-height: 1.8;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.content-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: #f0f6fc;
}

/* STEPS */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding: 0.5rem 0 0.5rem 2.2rem;
  position: relative;
  color: #8b949e;
  font-size: 0.92rem;
  line-height: 1.7;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.5rem;
  background: #58a6ff;
  color: #000;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq-item {
  border-top: 1px solid #21262d;
  padding: 1rem 0;
}

.faq-item h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #f0f6fc;
}

.faq-item p {
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.7;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 3rem 1rem;
  color: #8b949e;
  font-size: 0.8rem;
  margin-top: 4rem;
  border-top: 1px solid #21262d;
}

footer a {
  color: #58a6ff;
  text-decoration: none;
}

/* UTILITY */
.hidden { display: none !important; }

@media(max-width: 600px) {
  header { padding: 0.8rem 1.2rem; }
  .container { padding: 2rem 1.2rem; }
}