/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
     background: rgba(117, 32, 43,0.5);
  font-weight: bold;
}

th:first-child {
  border-top-left-radius: 10px;
}

th:last-child {
  border-top-right-radius: 10px;
}

tr:nth-child(odd) {
    background: var(--surface);
    border: 1px solid var(--red-dim);
}

tr:nth-child(even) {
    background: var(--bg);
}

tr:hover {
     background: rgba(117, 32, 43,0.35);
  transition: background-color 0.2s;
}

.actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
}

.actions a {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 8pt;
  font-weight: bold;
  text-transform: uppercase;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 5px;
  color: #fff;
  transition: background-color 0.2s, transform 0.1s;
}

li:before {
  content: "\E13A";
  font-family: "Phosphor";
  font-size: 10pt;
  vertical-align: middle;
  margin-right: 5px;
}

li:hover {
  background-color: rgba(0, 0, 0, 0.35);
  transform: translateX(3px);
}

li:nth-child(odd) {
    background: var(--surface);
    border: 1px solid var(--red-dim);
}

li:nth-child(even) {
    background: var(--bg);
}


/* Ensures text fields have consistent font styles across browsers. */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}

.dashboard-pending {
     background: rgba(117, 32, 43,0.5);
  padding: 15px;
  border-radius: 10px;
  width: 50%;
  margin: 0 auto 10px auto;
}

.dashboard-pending h1 {
  border: 0;
  text-align: center;
}

.dashboard-pending li {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-pending li:before {
  content: "\E13A";
  font-family: "Phosphor";
  font-size: 10pt;
  vertical-align: middle;
  margin-right: 5px;
}

.form {
  width: 90%;
  margin: 0 auto;
  padding: 15px;
    background: var(--surface);
        border: 1px solid rgba(155,75,75,0.2);
  margin-bottom: 10px;
  border-radius: 10px;
}

.form button.large {
  width: 50%;
  min-width: 200px;
  margin: 0 auto;
  display: block;
}

.messages {
    background: rgba(117, 32, 43,0.5);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #fff;
}

.messages.success {
  background: #3e7454;
}

.messages.error {
  background: #a84c4c;
}

.affiliates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, auto));
  gap: 20px;
}

.affiliates .affiliate {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.affiliates img {
  display: block;
  min-width: 88px;
  min-height: 31px;
  max-width: 88px;
  max-height: 31px;
  object-fit: contain;
}

.codes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(50px);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-button {
  background: none;
  border: none;
  font-size: 15pt;
  cursor: pointer;
}




/* Styling for input and textarea elements */
input,
textarea,
select {
  padding: 10px;
 background: var(--surface);
        border: 1px solid rgba(155,75,75,0.2);
  width: 100%;
  color: #ccc;
  border-radius: 5px;
}


textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group label:before {
  content: "\E13A";
  font-family: "Phosphor";
  font-size: 10pt;
  vertical-align: middle;
  margin-right: 5px;
}

.form-group label:has(input[type="checkbox"]):before {
  content: none;
}

#password-strength-message {
  margin-top: 5px;
}

fieldset.settings-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 5px;
}

fieldset.settings-group legend {
  font-weight: bold;
  padding: 0 10px;
}

.letter-filter a {
  padding: 5px;
  border-radius: 10px;
}

.letter-filter a.all {
  padding: 5px 10px;
}

.letter-filter a.active {
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
}

/* Button styling */
button {
  padding: 8px 16px;
  border: 1px solid #9C4221;
  background-color: var(--red);
  color: #fff;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  border-radius: 5px;
  transition: background-color 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
  filter: brightness(1.1);
}

button:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}


    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    
    :root {
      --bg: #040404;
      --surface: #111113;
      --border: rgba(155,75,75,0.12);
      --border2: rgba(155,75,75,0.07);
      --red: #9b4b4b;
      --red-dim: #6f2f34;
      --silver: #c9c9cc;
      --silver-dim: #b5b5b8;
      --text: #dcdcdc;
      --text-dim: #b8b8bb;
      --white: #ececec;
      --serif: 'Playfair Display', Georgia, serif;
      --sans: 'DM Sans', sans-serif;
    }
    
    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 300;
      line-height: 1.75;
      min-height: 100vh;
    }
    
    a { color: var(--silver); text-decoration: none; transition: color .2s; }
    a:hover { color: var(--white); }
    
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--red-dim); border-radius: 3px; }
    
    /* PAGE SHELL */
    #page {
      max-width: 1200px;
      margin: 0 auto;
      padding: 32px 24px 64px;

    }
    
  
    /* TOP NAV */
    #topnav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    
    .nav-links {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 0;
    }
    
    .nav-links a {
      font-size: 10.5px;
      letter-spacing: .13em;
      text-transform: uppercase;
      color: #a8a8ab;
      padding: 4px 11px;
      display: flex;
      align-items: center;
      gap: 5px;
      border-radius: 3px;
      position: relative;
      transition: color .2s;
    }
    
    .nav-links a .ph { font-size: 12px; }
    
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 1px;
      background: var(--silver);
      transition: width .25s ease;
    }
    
    .nav-links a:hover { color: var(--white); }
    .nav-links a:hover::after { width: calc(100% - 22px); }
    .nav-links a.active { color: var(--silver); }
    .nav-links a.active::after { width: calc(100% - 22px); }
    
    .nav-deco {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
      margin-left: 18px;
    }
    
    .nav-deco .sparkle {
      font-size: 14px;
      color: var(--red);
      flex-shrink: 0;
    }
    
    .nav-deco .line {
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, rgba(155,75,75,0.45), rgba(155,75,75,0.04));
    }
    
    /* HEADER */
    #header {
      position: relative;
      width: 100%;
      height: 400px;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--border);
    }
    
    .h-bg {
      position: absolute; 
      inset: 0;
      background: url("../img/header.png") center/cover no-repeat;
    }
    
    .h-bg::before {
      content: '';
      position: absolute;
      inset: 0;
      background: 
        linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.30)),
        radial-gradient(circle at 50% 45%, rgba(155,75,75,.10), transparent 38%);
    }
    
    /* TITLE ROW */
    #title-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 14px;
      margin-bottom: 46px;
    }
    
    #title-row .line {
      flex: 1;
      height: 1px;
      background: linear-gradient(270deg, rgba(155,75,75,0.45), rgba(155,75,75,0.04));
    }
    
    #title-row .sparkle {
      font-size: 13px;
      color: var(--red);
      flex-shrink: 0;
      line-height: 1;
    }
    
    #title-row h1 {
      font-family: var(--serif);
      font-size: clamp(1.25rem, 2.5vw, 1.6rem);
      font-weight: 400;
      font-style: italic;
      color: var(--white);
      letter-spacing: .01em;
      white-space: nowrap;
    }
    
    /* CONTENT */
    #content {
      display: flex;
      flex-direction: column;
      gap: 46px;
    }
    
    .sec-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
    }
    
    .sec-head::before {
      content: '';
      width: 16px; height: 1px;
      background: var(--red);
      flex-shrink: 0;
    }
    
    .sec-head span {
      font-size: 9.5px;
      letter-spacing: .26em;
      text-transform: uppercase;
      color: var(--silver);
    }
    
    /* Welcome */
    .welcome h2 {
      font-family: var(--serif);
      font-size: clamp(1.45rem, 2.4vw, 1.75rem);
      font-weight: 400;
      color: var(--white);
      line-height: 1.3;
      margin-bottom: 14px;
    }
    
    .welcome h2 em { color: var(--red); font-style: italic; }
    .welcome p { font-size: 13.5px; color: var(--text); margin-bottom: 10px; }
    
    /* Stats */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 10px;
    }
    
    .stat-box {
      background: var(--surface);
      border: 1px solid var(--border2);
      border-radius: 8px;
      padding: 20px 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      transition: border-color .2s;
    }
    
    .stat-box:hover { border-color: rgba(155,75,75,0.2); }
    
    .stat-icon { font-size: 17px; color: var(--red-dim); margin-bottom: 4px; }
    .stat-num {
      font-family: var(--serif);
      font-size: 1.95rem;
      color: var(--white);
      line-height: 1;
    }
    
    .stat-label {
      font-size: 9.5px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--text-dim);
    }
    
  
    /* FOOTER */
    #footer {
      margin-top: 56px;
      padding-top: 20px;
      border-top: 1px solid var(--border2);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      position: relative;
    }
    
    #footer::before {
      content: '';
      position: absolute;
      top: -1px; left: 0;
      width: 80px; height: 1px;
      background: linear-gradient(90deg, var(--red-dim), transparent);
    }
    
    .footer-copy {
      font-size: 12px;
      color: var(--text-dim);
      align-items: center; 
    }
    
    .footer-copy .ph { color: var(--red-dim); font-size: 12px; }
    
    .box {
        background: var(--surface);
        border: 1px solid rgba(155,75,75,0.2);
        padding: 10px;
        margin: auto;
        max-width: 850px;
        border-radius: 6px;
    }
    
    
blockquote {
    border-left: 1px solid var(--red-dim);
    padding: 10px;
}

b, strong {
    color: var(--red);
}

i, em, italic {
    color: var(--red-dim);
}

.ph {
    width: 1.25em;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    color: var(--text);
}


  
/* Ensures that when hovering over a <a> tag, its child elements (e.g., <i> icons) inherit the hover color. */
a:hover > * { color: var(--text); }
    
    /* RESPONSIVE */
    @media (max-width: 580px) {
      #page { padding: 20px 16px 48px; }
      .nav-deco { display: none; }
      .stats-row { grid-template-columns: repeat(2,1fr); }
      #header { height: 200px; }
    }