:root {
  --bg-color: #0a0a0a;
  /* Very dark, almost black */
  --card-bg: #111111;
  --text-main: #ededed;
  --text-muted: #a1a1aa;
  --accent-color: #ffffff;
  /* White accent for extreme minimalism */
  --accent-hover: #e5e5e5;
  --border-color: #27272a;
  --success-color: #10b981;
  --error-color: #ef4444;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

header nav a:hover {
  color: var(--text-main);
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  width: 100%;
}

/* Minimalist Hero */
.hero {
  text-align: center;
  margin-bottom: 5rem;
  padding: 4rem 0;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  transition: border-color 0.3s ease;
}

/* Product Grid */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.script-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.script-card:hover {
  border-color: #52525b;
}

.script-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.script-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.script-price-container {
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.script-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.badge {
  background: #27272a;
  color: #e4e4e7;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.script-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  flex: 1;
}

.script-install {
  background: #18181b;
  padding: 1rem;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  color: #e4e4e7;
  overflow-x: auto;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: #000000;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

form .btn,
.script-card .btn {
  width: 100%;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #27272a;
  opacity: 1;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

input[type="text"],
input[type="password"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}

.script-image-container {
  width: 100%;
  height: 180px;
  background: #18181b;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.script-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #52525b;
}

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

input[type="file"]::file-selector-button {
  background: var(--border-color);
  color: var(--text-main);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-right: 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
  background: #3f3f46;
}

.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.875rem;
}

th {
  text-align: left;
  padding: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 1rem;
  border-bottom: 1px solid #18181b;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}