:root {
  --bg: #090a0c;
  --bg-card: #121316;
  --bg-card-hover: #17181c;
  --border: #1f2127;
  --border-focus: #3a3d46;
  
  --text: #f4f4f6;
  --text-muted: #8b8e99;
  --text-faint: #52555e;
  
  --accent: #3b82f6;
  --accent-green: #10b981;
  --danger: #ef4444;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

/* Navigation */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav a.admin-link {
  color: #fff;
  background: #1e2025;
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.nav a.admin-link:hover {
  background: #2a2d34;
  border-color: var(--border-focus);
}

/* Links Grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.link-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.link-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.link-btn .link-label {
  color: #fff;
  font-weight: 600;
}

.link-btn .link-url-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 0.5rem;
}

.link-btn .link-arrow {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.link-btn:hover .link-arrow {
  color: #fff;
}

/* Hero / Profile */
.profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.profile-info h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.profile-handle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.profile-bio {
  color: #c2c5cc;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 580px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
}

/* Sections */
.section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Items List (Simple Clean Black Cards / Rows) */
.list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.card-price {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #10b981;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-meta {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* Contact Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ADMIN PANEL STYLING */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

.admin-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.admin-box h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.form-input, .form-textarea {
  width: 100%;
  background: #090a0c;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  min-height: 70px;
  resize: vertical;
}

.btn {
  background: #272a33;
  color: #fff;
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn:hover {
  background: #343844;
}

.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.admin-item-row {
  background: #0a0b0d;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
}

.toast.show {
  display: block;
}

@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    gap: 0.75rem;
  }
}
