:root {
  --orange: #f05a1a;
  --dark: #080b0d;
  --panel: #141719;
  --line: #2a2d30;
  --soft: #f5f5f2;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #1b1f22, #060708 75%);
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
}

/* ==============================
   HEADER / NAV
============================== */

.topbar {
  height: 72px;
  background: #080a0b;
  display: flex;
  align-items: center;
  padding: 0 32px;
  color: #fff;
}

.brand {
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  text-decoration: none;
  margin-right: 0;
}

.brand span {
  color: var(--orange);
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 40px;
  flex: 1;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 27px 0 23px;
  border-bottom: 3px solid transparent;
}

.nav a.active {
  border-bottom-color: var(--orange);
  color: #fff;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
}

/* ==============================
   USER NAV / DROPDOWN
============================== */

.auth-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
}

.auth-nav > a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 27px 10px 23px;
  border-bottom: 3px solid transparent;
}

.auth-nav > a:hover {
  color: var(--orange);
}

.auth-nav .dropdown {
  position: relative;
}

.auth-nav .avatar {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.auth-nav .avatar:hover,
.auth-nav .avatar:focus {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(240,90,26,.18);
}

.auth-nav .user-menu {
  width: 265px;
  min-width: 265px;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 8px 0;
  margin-top: 12px !important;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.auth-nav .user-menu .dropdown-header {
  padding: 15px 18px 13px;
  background: #fff;
  line-height: 1.35;
  white-space: normal;
}

.auth-nav .user-menu .dropdown-header strong {
  display: block;
  color: #222 !important;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 3px;
}

.auth-nav .user-menu .dropdown-header small {
  display: block;
  color: #666 !important;
  font-size: 13px;
}

.auth-nav .user-menu .dropdown-divider {
  margin: 6px 0;
  border-top-color: #e6e6e6;
}

.auth-nav .user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  background: #fff;
  color: #222 !important;
  text-align: left;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.auth-nav .user-menu .dropdown-item i {
  width: 18px;
  text-align: center;
  color: #777;
  opacity: .95;
}

.auth-nav .user-menu .dropdown-item:hover,
.auth-nav .user-menu .dropdown-item:focus {
  background: #f5f5f5;
  color: #000 !important;
}

.auth-nav .user-menu .dropdown-item.text-danger {
  color: #dc3545 !important;
}

.auth-nav .user-menu .dropdown-item.text-danger i {
  color: #dc3545;
}

.auth-nav .user-menu .dropdown-item.text-danger:hover,
.auth-nav .user-menu .dropdown-item.text-danger:focus {
  background: #fff3f3;
  color: #b02a37 !important;
}

.user-loading {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================
   PAGE / HOME
============================== */

.page {
  padding: 0 24px 24px;
}

.hero-wrap {
  background: #1a1d1f;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 22px;
}

.hero {
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.1) 100%),
    url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 48px 44px;
  color: #fff;
}

.hero h4 {
  font-weight: 900;
  font-size: 24px;
}

.hero h1 {
  font-size: 58px;
  line-height: .92;
  font-weight: 1000;
  letter-spacing: -3px;
  margin: 6px 0 16px;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 5px;
  font-weight: 900;
  padding: 13px 28px;
  font-size: 13px;
}

.btn-outline-light {
  border-radius: 5px;
  font-weight: 900;
  padding: 12px 28px;
  font-size: 13px;
}

.stats-panel {
  background: #0b0d0e;
  border: 1px solid #202326;
  border-radius: 12px;
  padding: 22px;
  color: #fff;
}

.stats-panel h3 {
  color: var(--orange);
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 10px;
  border-top: 1px solid #25282a;
}

.stat:nth-child(odd) {
  border-right: 1px solid #25282a;
}

.stat i {
  font-size: 31px;
  color: #bfc1c3;
  width: 42px;
  text-align: center;
}

.stat strong {
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
  display: block;
}

.stat span {
  font-size: 11px;
  font-weight: 900;
}

.content {
  background: #f4f3ef;
  border-radius: 12px;
  margin-top: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 2fr 1.2fr 340px;
}

.block {
  padding: 22px 24px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.block-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.block-title h2 {
  font-size: 20px;
  font-weight: 1000;
  margin: 0;
}

.view-link {
  color: var(--orange);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cardx {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 7px;
  overflow: hidden;
}

.thumb {
  height: 130px;
  background: #2f3335;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  position: relative;
}

.label {
  position: absolute;
  left: 10px;
  bottom: 8px;
  background: #111;
  color: #fff;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 3px;
  font-weight: 900;
}

.card-bodyx {
  padding: 14px;
}

.card-bodyx h3 {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 1000;
  margin-bottom: 24px;
}

.time {
  font-size: 11px;
  color: #666;
}

.featured-img {
  height: 170px;
  background: #293033;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 54px;
  margin-bottom: 12px;
}

.featured h3 {
  font-size: 20px;
  font-weight: 1000;
  margin-bottom: 2px;
}

.chips span {
  background: #ddd;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
  margin-right: 4px;
}

.featured-footer {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 120px;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 900;
}

.side-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.side-row {
  display: grid;
  grid-template-columns: 32px 40px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.side-row i {
  font-size: 22px;
}

.side-row strong {
  font-size: 19px;
}

.mini-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #f4f3ef;
}

.tiny-items {
  display: flex;
  gap: 18px;
  align-items: start;
}

.tiny {
  width: 78px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.tiny-img {
  height: 46px;
  background: #1d2022;
  border-radius: 6px;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
  color: white;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #f4f3ef;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

footer {
  color: #ccc;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
}

/* ==============================
   SLATELETS
============================== */

.slatelet-page-header {
  background: #f4f3ef;
  border-radius: 12px 12px 0 0;
  padding: 28px 32px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.slatelet-page-header h1 {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -1px;
}

.slatelet-page-header p {
  margin: 0;
  color: #555;
  font-size: 15px;
}

.slatelet-shell {
  margin-top: 0;
  border-radius: 0 0 12px 12px;
  background: #f4f3ef;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1200px) {
  .hero-wrap,
  .content,
  .mini-section,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }
}

/* ==============================
   AUTH DROPDOWN FIX
============================== */

.auth-nav .dropdown-menu {
    width: 260px;
    min-width: 260px;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 0 !important;
    margin-top: 12px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.auth-nav .dropdown-header {
    padding: 14px 18px !important;
    background: #fff;
    color: #222 !important;
}

.auth-nav .dropdown-header strong {
    color: #222 !important;
}

.auth-nav .dropdown-header small {
    color: #666 !important;
}

.auth-nav .dropdown-divider {
    margin: 6px 0 !important;
}

.auth-nav .dropdown-menu a,
.auth-nav .dropdown-menu button,
.auth-nav .dropdown-menu .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 18px !important;
    border: 0;
    background: #fff;
    color: #222 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}

.auth-nav .dropdown-menu a:hover,
.auth-nav .dropdown-menu button:hover,
.auth-nav .dropdown-menu .dropdown-item:hover {
    background: #f4f4f4 !important;
    color: #000 !important;
}

.auth-nav .dropdown-menu .text-danger {
    color: #dc3545 !important;
}

.auth-nav .dropdown-menu .text-danger:hover {
    background: #fff1f1 !important;
    color: #b02a37 !important;
}

.global-auth-modal.hidden {
    display: none;
}

.global-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.global-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

.global-auth-card {
    position: relative;
    width: min(92vw, 480px);
    margin: 7vh auto 0;
    background: #222;
    color: #fff;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.global-auth-card h2 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
}

.global-auth-card p,
.global-auth-card label {
    color: #fff;
}

.global-auth-card p {
    color: #b8b8b8;
}

.global-auth-card .form-control {
    background: #2d2d2d;
    border: 1px solid #444;
    color: #fff;
}

.global-auth-card .form-control:focus {
    background: #2d2d2d;
    color: #fff;
    border-color: var(--orange);
    box-shadow: none;
}

.global-auth-card .form-control::placeholder {
    color: #888;
}

.global-auth-card a,
.auth-link-button {
    color: var(--orange);
}

.auth-link-button {
    width: auto;
    background: transparent;
    border: 0;
    padding: 0;
    font-weight: 800;
    display: inline;
}

.auth-link-button:hover {
    color: #ff8a4c;
}

.global-auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    background: #333;
    color: #fff;
}

.nav-auth-link {
    width: auto;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.nav-auth-link:hover {
    color: var(--orange);
}

.auth-view-hidden {
    display: none !important;
}