/* shifyee rewards — shared stylesheet */

:root {
  --bg: #1B1D21;
  --surface: #232527;
  --card: #2B2E32;
  --card-hover: #35383D;
  --card-active: #3D4147;

  --border: #3A3D42;
  --border-soft: #303338;

  --text: #FFFFFF;
  --text-2: #B8B8B8;
  --text-3: #767A80;

  --blue: #00A2FF;
  --blue-hover: #0090E0;
  --green: #02B757;
  --green-hover: #029B4A;
  --gold: #FFB800;
  --red: #FF3B30;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --r: 8px;
  --r-sm: 6px;
  --r-lg: 12px;

  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

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

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

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

button {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  padding: 10px 18px;
  transition: background 0.12s, transform 0.08s;
  letter-spacing: 0.01em;
}
button:active:not(:disabled) { transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

input {
  font-family: var(--font);
  font-size: 15px;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,162,255,0.15);
}
input::placeholder { color: var(--text-3); }

/* ============ HEADER ============ */
.rbx-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}
.rbx-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.rbx-header .brand-mark {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.rbx-header .brand-text span { color: var(--text-3); font-weight: 500; margin-left: 2px; }

.rbx-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.rbx-nav a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.rbx-nav a:hover {
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}
.rbx-nav a.active {
  background: var(--card);
  color: var(--text);
}

.rbx-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--card);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.rbx-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
}

/* ============ CONTAINER ============ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
}
.container-narrow { max-width: 480px; }

/* ============ CARDS ============ */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ============ TYPOGRAPHY ============ */
h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.sub {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
.dim { color: var(--text-2); }
.mute { color: var(--text-3); }
.mono { font-family: var(--mono); }

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--green);
  color: white;
  width: 100%;
  padding: 14px;
  font-size: 15px;
}
.btn-primary:hover:not(:disabled) { background: var(--green-hover); }

.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover:not(:disabled) { background: var(--blue-hover); }

.btn-ghost {
  background: var(--card);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--card-hover);
  color: var(--text);
}

/* ============ ROBUX ICON ============ */
.rbx-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
}

/* ============ AVATAR ============ */
.avatar {
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.user-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-top: 10px;
}
.user-preview .name { font-weight: 700; font-size: 14px; }
.user-preview .id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ============ STATUS ============ */
.status {
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
  color: var(--text-3);
}
.status.error { color: var(--red); }
.status.ok { color: var(--green); }

/* ============ FOOTER ============ */
.footnote {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.7;
}
.footnote a { color: var(--text-3); }
.footnote a:hover { color: var(--text-2); }

/* ============ MOBILE ============ */
@media (max-width: 640px) {
  .rbx-header { padding: 0 12px; gap: 10px; }
  .rbx-header .brand-text { display: none; }
  .rbx-nav a { padding: 8px 10px; font-size: 13px; }
  .rbx-user span { display: none; }
  .rbx-user { padding: 4px; }
  .container { padding: 20px 14px; }
}
