@import url('/assets/universal-nav.css');
/* ============================================================================
   Slikyface Universal Accounts - Premium Black & Lime Theme
   ============================================================================ */

:root {
  --bg: #080c08;
  --bg-card: #111811;
  --bg-input: #070d07;
  --border: #22331d;
  --border-focus: #3f5f34;
  --lime: #b8ff36;
  --lime-hover: #d2ff6b;
  --lime-glow: rgba(184, 255, 54, 0.15);
  --text: #f2f5ed;
  --text-dim: #9cb094;
  --text-muted: #6e8267;
  --danger: #ff5e5e;
  --danger-bg: #291212;
  --danger-border: #592323;
  --success: #66e07a;
  --success-bg: #102914;
  --success-border: #23592c;
  --warning: #ffbf42;
  --warning-bg: #2b2210;
  --warning-border: #59441f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 85% 0%, #15260c 0%, transparent 35%),
    radial-gradient(circle at 10% 90%, #0d1a08 0%, transparent 30%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

.header {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 8, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: var(--lime);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #081007;
  font-weight: 900;
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Barlow Condensed', -apple-system, Impact, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-style: italic;
  color: #ffffff;
  line-height: 1;
}

.brand-title em {
  color: var(--lime);
  font-style: inherit;
}

.brand-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
}
.nav-link:hover { color: #fff; text-decoration: none; }

.user-badge {
  background: #142112;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--lime);
}

.main {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
  transition: max-width 0.25s ease-in-out;
}

.main.admin-expanded {
  max-width: 1040px;
}

.main.wide {
  max-width: 960px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.card-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover { color: #fff; }
.tab-btn.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime-glow);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime);
  color: #081007;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  width: 100%;
}

.btn:hover { background: var(--lime-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.secondary {
  background: #192716;
  color: #d1e2c9;
  border: 1px solid var(--border);
}
.btn.secondary:hover { background: #22371e; color: #fff; }

.btn.danger {
  background: var(--danger);
  color: #fff;
}
.btn.danger:hover { background: #ff4747; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.alert.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: #ff9b9b;
}
.alert.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #a4f0b1;
}
.alert.warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: #ffd885;
}

/* Password Strength Meter */
.strength-meter {
  margin-top: 8px;
  background: #090e09;
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
}
.strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s, background 0.3s;
}
.strength-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
}
.strength-item {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.strength-item.passed {
  color: var(--lime);
}

/* Dashboard Tiles */
.profile-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.profile-tile {
  background: #0a110a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.tile-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.tile-val {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
  word-break: break-all;
}

/* Admin Console */
.admin-badge {
  background: #38240a;
  border: 1px solid #734812;
  color: #ffd27a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.owner-badge {
  background: #3b0e0e;
  border: 1px solid #7a1d1d;
  color: #ff9191;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 16px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #1a2916;
}
.data-table th {
  background: #0c140c;
  color: var(--text-dim);
  font-weight: 700;
}
.data-table tr:hover td {
  background: #131c13;
}

.prototype-drawer {
  background: #0f170f;
  border: 1px dashed rgba(184, 255, 54, 0.4);
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
}
.prototype-drawer h4 {
  color: var(--lime);
  margin-bottom: 8px;
}

.badge-audit {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.badge-audit-temp { background: #38240a; border: 1px solid #734812; color: #ffd27a; }
.badge-audit-revoke { background: #361010; border: 1px solid #732626; color: #ff8585; }
.badge-audit-reset { background: #0c2538; border: 1px solid #164b73; color: #7ad0ff; }
.badge-audit-reveal { background: #330d36; border: 1px solid #6b1b73; color: #ff85fa; }
.badge-audit-search { background: #131d13; border: 1px solid #23341d; color: var(--text-dim); }
.badge-audit-ban { background: #38240a; border: 1px solid #734812; color: #ffd27a; }
.badge-audit-unban { background: #142813; border: 1px solid #295427; color: #85ff85; }
.badge-audit-delete { background: #3b0e0e; border: 1px solid #732626; color: #ff8585; font-weight: 700; }
.badge-audit-default { background: #1a221a; border: 1px solid #2f3e2f; color: var(--text); }

.banned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #3b0e0e;
  color: #ff8585;
  border: 1px solid #732626;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.admin-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 14px;
  background: #091209;
  border: 1px solid #1a2916;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.admin-page-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-page-btn {
  background: #142112;
  border: 1px solid #233e1c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.admin-page-btn:hover:not(:disabled) {
  background: #1d3319;
  border-color: var(--lime);
  color: var(--lime);
}

.admin-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn.btn-ban {
  background: #38240a;
  border: 1px solid #734812;
  color: #ffd27a;
}

.btn.btn-ban:hover {
  background: #4d310d;
  border-color: #ffd27a;
  color: #fff;
}

.btn.btn-unban {
  background: #142813;
  border: 1px solid #295427;
  color: #85ff85;
}

.btn.btn-unban:hover {
  background: #1d3b1b;
  border-color: #85ff85;
  color: #fff;
}

.btn.btn-delete {
  background: #3b0e0e;
  border: 1px solid #732626;
  color: #ff8585;
  font-weight: 700;
}

.btn.btn-delete:hover:not(:disabled) {
  background: #541414;
  border-color: #ff8585;
  color: #ffffff;
}

@media (max-width: 768px) {
  .table-wrap.admin-responsive-cards .data-table,
  .table-wrap.admin-responsive-cards .data-table tbody,
  .table-wrap.admin-responsive-cards .data-table tr,
  .table-wrap.admin-responsive-cards .data-table td {
    display: block;
    width: 100%;
  }
  .table-wrap.admin-responsive-cards .data-table thead {
    display: none;
  }
  .table-wrap.admin-responsive-cards .data-table tr {
    background: #091209;
    border: 1px solid #1a2916;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
  }
  .table-wrap.admin-responsive-cards .data-table td {
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }
  .table-wrap.admin-responsive-cards .data-table td:last-child {
    border-bottom: none;
    padding-top: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }
  .table-wrap.admin-responsive-cards .data-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: left;
    margin-right: 12px;
  }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

@media (max-width: 600px) {
  .card { padding: 16px; }
  .form-input, select.form-input, input.form-input { font-size: 16px !important; } /* Prevents iOS Safari auto-zoom */
  .strength-checklist { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .tabs { padding-bottom: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .btn { min-height: 44px; }
}
