/* =========================================================
   Unity Roleplay — Modern Clean Redesign
   Unique • Clean • Modern
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Core palette — deep charcoal + refined crimson */
  --bg: #06080c;
  --bg-elevated: #0a0e14;
  --surface: #0e131b;
  --surface-2: #131a24;
  --surface-3: #1a2330;
  --surface-hover: #1c2634;

  --text: #f4f6f9;
  --text-soft: #c5cdd8;
  --muted: #7d8899;
  --muted-2: #5c6778;

  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.11);
  --line-accent: rgba(232, 72, 85, 0.35);

  --accent: #e84855;
  --accent-hover: #ff5c69;
  --accent-soft: rgba(232, 72, 85, 0.12);
  --accent-glow: rgba(232, 72, 85, 0.25);
  --accent-strong: #ff6b78;

  --success: #3ecf8e;
  --success-soft: rgba(62, 207, 142, 0.12);
  --warning: #f0b429;
  --warning-soft: rgba(240, 180, 41, 0.12);
  --danger: #f07178;
  --danger-soft: rgba(240, 113, 120, 0.12);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 10px 30px rgba(232, 72, 85, 0.22);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(232, 72, 85, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(80, 60, 180, 0.06), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(232, 72, 85, 0.04), transparent 50%),
    linear-gradient(180deg, #080b11 0%, #06080c 40%, #07090e 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---------- Layout ---------- */
.wrap, .container {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.wrap { padding: 20px 0 64px; }

/* ---------- Topbar / Header ---------- */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 10px 12px 10px 16px;
  margin-bottom: 28px;
  background: rgba(10, 13, 20, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-copy b {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.01em;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}
.btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}
.btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #f05562 0%, #d63a48 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-accent);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #ff6572 0%, #e84855 100%);
  box-shadow: 0 12px 32px rgba(232, 72, 85, 0.32);
  transform: translateY(-1px);
}
.btn.primary:active {
  transform: translateY(0);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card + .card { margin-top: 18px; }

.card .hd,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card .body { padding: 18px; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}

/* ---------- Home Layout ---------- */
.grid.home-layout,
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.home-main { min-width: 0; }
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

/* ---------- Hero ---------- */
.hero,
.home-hero {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  border-radius: var(--radius-lg) !important;
  background:
    linear-gradient(135deg, rgba(232, 72, 85, 0.08) 0%, transparent 50%),
    var(--surface) !important;
  border: 1px solid var(--line) !important;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 85% 50%, rgba(232, 72, 85, 0.15), transparent 55%),
    linear-gradient(90deg, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  padding: 36px 36px 28px;
}

.home-hero-content h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}
.home-hero-content h1 span,
.home-hero-content h1 div {
  display: inline;
  background: linear-gradient(135deg, #ff6b78 0%, #e84855 50%, #c92e3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero-content p {
  margin: 0 0 24px;
  max-width: 420px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.home-hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 12px;
  background: rgba(10, 13, 20, 0.6);
  text-align: center;
}
.home-hero-stats b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.home-hero-stats span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Forum Sections ---------- */
.home-forum-section {
  border-radius: var(--radius) !important;
}

.home-section-count {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
}

.board-grid,
.home-board-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.board,
.home-board {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
  text-decoration: none;
  color: inherit;
}
.board:last-child,
.home-board:last-child { border-bottom: none; }
.board:hover,
.home-board:hover {
  background: rgba(255, 255, 255, 0.025);
}

.home-board-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.home-board:hover .home-board-icon {
  transform: scale(1.06);
  background: rgba(232, 72, 85, 0.18);
}

.home-board-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.board-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-board-heading h3 {
  margin: 0 0 3px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.home-board-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.small-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: var(--accent-soft);
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
  white-space: nowrap;
}

.board-meta,
.home-board-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.board-meta b,
.home-board-meta b {
  color: var(--text-soft);
  font-weight: 650;
}

.home-board-latest {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}
.home-latest-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.home-board-latest b {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-board-latest small {
  font-size: 12px;
  color: var(--muted);
}
.home-no-thread {
  font-size: 13px;
  color: var(--muted-2);
  font-style: italic;
}

/* ---------- Status badges ---------- */
.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status.godkand {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(62, 207, 142, 0.25);
}
.status.intervju {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid rgba(240, 180, 41, 0.25);
}
.status.nekad {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(240, 113, 120, 0.25);
}

/* ---------- Sidebar ---------- */
.home-side-card {
  border-radius: var(--radius) !important;
}

.home-side-card .body {
  padding: 14px 16px 16px;
}

.empty-note {
  padding: 14px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
}

/* Staff list */
.home-staff-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-staff-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background 0.2s var(--ease);
}
.home-staff-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.home-person-avatar,
.home-member-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-3);
}
.home-person-avatar img,
.home-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2a3344, #1a2230);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-soft);
}

.home-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  background: var(--success);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.3);
}

.home-person-info {
  min-width: 0;
  flex: 1;
}
.home-person-info b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.home-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
}
.home-role-badge .role-icon {
  display: flex;
  opacity: 0.85;
}
.home-role-badge .role-icon svg {
  width: 11px;
  height: 11px;
}

.home-row-arrow {
  color: var(--muted-2);
  font-size: 16px;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}
.home-staff-item:hover .home-row-arrow,
.home-latest-member:hover .home-row-arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--accent);
}

/* Online members */
.home-online-members {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-online-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  transition: background 0.2s var(--ease);
  font-size: 13px;
  font-weight: 560;
  color: var(--text-soft);
}
.home-online-member:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.home-online-member .home-member-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

/* Latest threads */
.home-latest-threads {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-thread-item {
  display: flex;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 11px;
  transition: background 0.2s var(--ease);
}
.home-thread-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.home-thread-marker {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.home-thread-content {
  min-width: 0;
  flex: 1;
}
.home-thread-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}
.home-thread-title-row b {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-thread-content > span {
  font-size: 12px;
  color: var(--muted);
}

/* Stats grid */
.home-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.home-stat-box span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-stat-box b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-latest-member {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.home-latest-member:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}
.home-latest-member span:first-child {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  flex: 1;
}
.home-latest-member b {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
}

/* Owner glow */
.owner-name-glow {
  background: linear-gradient(90deg, #ffd700, #ff9f43, #ffd700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ownerShine 3s linear infinite;
}
@keyframes ownerShine {
  to { background-position: 200% center; }
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--text-soft);
}
.site-footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.site-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}
.site-footer-links a:hover { color: var(--text); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(560px, calc(100% - 32px));
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(14, 19, 27, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.cookie-text b {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}
.cookie-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.cookie-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ---------- Motion ---------- */
.has-motion body { opacity: 0; transition: opacity 0.35s var(--ease-out); }
.has-motion body.is-ready { opacity: 1; }
.has-motion body.is-leaving { opacity: 0; transition: opacity 0.28s ease; }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 40ms);
}
body.is-ready [data-stagger] > * {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid.home-layout,
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .home-side-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wrap, .container { width: calc(100% - 24px); }
  .wrap { padding: 14px 0 48px; }

  .topbar {
    top: 10px;
    min-height: 60px;
    padding: 8px 10px 8px 12px;
    border-radius: 14px;
  }
  .logo { width: 40px; height: 40px; }
  .brand-copy b { font-size: 14px; }
  .nav { gap: 4px; }
  .btn { min-height: 34px; padding: 6px 11px; font-size: 12px; }

  .home-hero-content { padding: 26px 20px 22px; }
  .home-hero-content h1 { font-size: 26px; }
  .home-hero-stats b { font-size: 22px; }

  .home-sidebar {
    grid-template-columns: 1fr;
  }

  .board,
  .home-board {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 14px 14px;
  }
  .home-board-icon {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-actions { justify-content: center; }
}

@media (max-width: 420px) {
  .home-hero-stats {
    grid-template-columns: 1fr;
  }
  .home-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Extra polish for other pages ---------- */
.board-page .card,
.thread-page .card,
.profile-page .card {
  border-radius: var(--radius);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(232, 72, 85, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Keep existing role colors / multi-role if present */
.role-agare, .role-delagare { color: #ffd700 !important; }
.role-admin, .role-ledning { color: #e84855 !important; }
.role-head-mod, .role-mod { color: #7c9cff !important; }
.role-helper, .role-medlemskapsansvarig { color: #3ecf8e !important; }
