/* ToolRent public storefront */
:root {
  --bg: #f4f5f7;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #28a745;
  --primary-dark: #21913c;
  --sidebar: #141414;
  --radius: 10px;
  --font: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.public-body {
  font-family: var(--font);
  background: linear-gradient(180deg, #eef2f0 0%, var(--bg) 40%);
  color: var(--text);
  min-height: 100vh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: var(--sidebar);
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand strong { display: block; font-size: 1.05rem; }
.brand small { color: #9ca3af; font-size: 0.75rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--primary); display: grid; place-items: center;
}
.site-nav {
  display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
}
.site-nav a { color: #d1d5db; text-decoration: none; font-size: 0.92rem; }
.site-nav a:hover { color: #fff; }
.site-nav .bal { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.site-nav .uname { color: #9ca3af; font-size: 0.88rem; }

.site-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.site-footer {
  text-align: center; color: var(--muted); font-size: 0.85rem;
  padding: 1.5rem; border-top: 1px solid var(--border);
}

.hero {
  margin-bottom: 1.5rem;
}
.hero h1 { margin: 0 0 0.35rem; font-size: 1.75rem; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(16,24,40,0.05);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.service-card h3 { margin: 0; font-size: 1.05rem; }
.service-card .cat {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--primary); font-weight: 600;
}
.service-card .desc { color: var(--muted); font-size: 0.9rem; flex: 1; margin: 0; }
.service-card .price { font-size: 1.25rem; font-weight: 700; }
.service-card .meta { font-size: 0.8rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  border: none; border-radius: 8px; padding: 0.55rem 1rem;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
  background: transparent; color: #d1d5db; border: 1px solid #374151;
  padding: 0.4rem 0.85rem;
}
.btn-ghost:hover { color: #fff; border-color: #9ca3af; }
.btn-block { width: 100%; }

.auth-card, .panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 420px;
  margin: 1rem auto;
  box-shadow: 0 1px 2px rgba(16,24,40,0.05);
}
.panel { max-width: 900px; }
.auth-card h1, .panel h1 { margin: 0 0 1rem; font-size: 1.35rem; }
.form-group { margin-bottom: 0.9rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--border);
  border-radius: 8px; font: inherit;
}
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.85rem; }
.form-hint a { color: var(--primary); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td {
  text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border);
}
.data-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.empty-row { text-align: center; color: var(--muted); padding: 1.5rem !important; }

.badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; text-transform: capitalize;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-reject { background: #fee2e2; color: #991b1b; }

.flash {
  max-width: 1100px; margin: 0.75rem auto 0; padding: 0.75rem 1rem;
  border-radius: 8px; font-size: 0.9rem;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }

.cred-box {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
  padding: 0.85rem 1rem; margin-top: 0.75rem; font-family: ui-monospace, monospace; font-size: 0.9rem;
}

@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; }
}
