/* ==============================
   RULES PAGE — UniTrade Dark Theme
============================== */
:root {
  --bg-dark: #0F1226; --bg-mid: #1C2045; --bg-light: #2A2F6A;
  --card: #2C315F; --card-light: #3A3F75;
  --accent: #6C72FF; --accent-soft: #5B60D1;
  --text-main: #FFFFFF; --text-secondary: #C9CCE7; --text-muted: #9EA3C7;
  --border: #3A3F75; --border-soft: rgba(58,63,117,0.5);
  --shadow: rgba(0,0,0,0.45); --shadow-glow: rgba(76,111,255,0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(circle at top left, var(--bg-light), var(--bg-mid), var(--bg-dark));
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background: rgba(28,32,69,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 8px 32px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.rules-wrapper,
.content-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

header {
  text-align: center;
  margin-bottom: 52px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}

header h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), #D9DCFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

header .intro {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

section { margin-bottom: 40px; }

section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 14px 20px;
  background: rgba(108,114,255,0.08);
  border: 1px solid rgba(108,114,255,0.18);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

ul {
  list-style: none;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 12px 18px 12px 44px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  position: relative;
  line-height: 1.6;
  transition: all 0.3s ease;
}

li:hover { background: var(--card-light); }

li::before {
  content: '✦';
  position: absolute;
  left: 16px;
  top: 13px;
  color: var(--accent);
  font-size: 12px;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 160px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px auto 0;
  box-shadow: 0 6px 20px var(--shadow-glow);
  font-family: inherit;
}

button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px var(--shadow-glow);
}

img { max-width: 100%; height: auto; }

footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-soft);
  padding: 24px 20px;
  background: rgba(15,18,38,0.6);
  margin-top: 60px;
}

@media (max-width: 768px) {
  .rules-wrapper, .content-wrapper { padding: 32px 16px 60px; }
  header h1 { font-size: 26px; }
  section h2 { font-size: 17px; }
  li { font-size: 14px; }
  button { width: 100%; }
  table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 480px) {
  header h1 { font-size: 22px; }
  li { font-size: 13px; padding: 10px 16px 10px 38px; }
}
