/** ////////////////////////////////////////////
//  MODERN RESPONSIVE DESIGN SYSTEM - SIAFU
///////////////////////////////////////////////*/
:root {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-hover: #1f2937;
  --border-color: #374151;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-success: #10b981;
  --accent-danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Container & Box */
.box, .container, .help-box, .about-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 80px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  margin-top: 0;
  font-weight: 700;
  text-align: left;
}

h1 { font-size: 2rem; color: var(--accent-primary); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
  text-align: left;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo h1 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-main);
}

.icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  background: transparent;
  text-decoration: none;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 0.25rem;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    align-items: stretch;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu a {
    padding: 0.75rem 1rem;
    text-align: center;
  }
}

/* Footer */
footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer p {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  background: transparent;
  padding: 0;
}

/* Forms & Inputs */
form, div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

input, textarea, select {
  background-color: var(--bg-primary) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Buttons & Button Lists */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--accent-success);
  color: #fff;
}
.btn-success:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline-light:hover {
  background: var(--bg-surface-hover);
  color: #fff;
}

.btn-list {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
}

@media (max-width: 500px) {
  .btn-list {
    flex-direction: column;
  }
  .btn-list > * {
    width: 100%;
  }
}

/* Home Search */
.home-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
}

.home-intro p, .home-intro h4 {
  width: 100%;
  max-width: 550px;
  text-align: center;
}

.search {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 650px;
  margin: 1.5rem auto 0 auto;
  border-radius: 50px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.search:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.search > input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 0.85rem 1rem !important;
  font-size: 1rem;
  box-shadow: none !important;
}

.search > .go, .search > .paste {
  border: none;
  height: 48px;
  padding: 0 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.2s ease;
}

.search .paste {
  background-color: #374151;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
}
.search .paste:hover {
  background-color: #4b5563;
}

.search .go {
  background-color: var(--accent-success);
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}
.search .go:hover {
  background-color: #059669;
}

/* Progress and Code boxes */
progress {
  width: 100%;
  height: 6px;
  appearance: none;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-primary);
}

progress::-webkit-progress-bar {
  background-color: var(--bg-primary);
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent-primary), #06b6d4);
  border-radius: 12px;
}

.code {
  background-color: var(--bg-primary) !important;
  color: var(--accent-success) !important;
  font-family: monospace;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* Plan Cards & Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  justify-content: center;
}

.plan-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex: 1;
  min-width: 260px;
  max-width: 350px;
  box-shadow: var(--shadow-sm);
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.plan-card.popular {
  border-color: var(--accent-success);
  background: linear-gradient(145deg, #111827, #064e3b);
}

.plan-price {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--accent-success);
  margin: 1rem 0;
}

.plan-duration {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  text-align: left;
}

.feature-list li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  color: var(--accent-success);
}
