/*
 * Tanados Reborn visual system.
 * Loaded last so the new theme can modernize inherited FusionCMS/module markup.
 */

:root {
  --reborn-bg: #090d10;
  --reborn-bg-2: #10161b;
  --reborn-panel: rgba(15, 21, 26, 0.92);
  --reborn-panel-2: rgba(21, 29, 35, 0.94);
  --reborn-border: rgba(226, 196, 130, 0.18);
  --reborn-border-strong: rgba(226, 196, 130, 0.34);
  --reborn-text: #f4efe4;
  --reborn-muted: #aeb8bb;
  --reborn-soft: #d8c7a0;
  --reborn-gold: #d9ad58;
  --reborn-gold-2: #f4cf7a;
  --reborn-teal: #35d0c9;
  --reborn-teal-2: #77eee6;
  --reborn-crimson: #9e3446;
  --reborn-green: #5f9f73;
  --reborn-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --reborn-radius: 8px;
  --font-family: "Inter", Arial, sans-serif;
  --reborn-heading: "Cinzel", Georgia, serif;
}

html {
  background: var(--reborn-bg);
}

body {
  min-width: 320px;
  color: var(--reborn-text);
  background:
    linear-gradient(180deg, rgba(6, 10, 12, 0.98), rgba(9, 13, 16, 0.98) 44%, rgba(12, 16, 19, 1)),
    #090d10;
  font-family: var(--font-family);
  line-height: 1.55;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-family) !important;
  letter-spacing: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-heading,
.card-title {
  color: #fff7df;
  font-family: var(--reborn-heading) !important;
  font-weight: 700;
  letter-spacing: 0 !important;
}

a {
  color: var(--reborn-gold-2);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--reborn-teal-2);
}

img,
video,
iframe {
  max-width: 100%;
}

::selection {
  color: #081013;
  background: var(--reborn-gold-2);
}

.texture,
.bg-dark,
.bg-darker {
  background-color: transparent !important;
  background-image: none !important;
}

.container,
.container-fluid {
  --bs-gutter-x: 1.25rem;
}

.section-padding {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.text-warning,
.text-gold {
  color: var(--reborn-gold-2) !important;
}

.text-muted,
.text-soft,
.section-description,
.card-text,
p {
  color: var(--reborn-muted);
}

.reborn-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(53, 208, 201, 0.38);
  border-radius: 999px;
  color: #bdfefa;
  background: rgba(53, 208, 201, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

/* Header and Navigation */
.notice-bar {
  border: 0 !important;
  border-bottom: 1px solid rgba(217, 173, 88, 0.22) !important;
  background: #111820 !important;
}

.header {
  z-index: 1000;
  border-bottom: 1px solid rgba(217, 173, 88, 0.18);
  background: rgba(7, 11, 13, 0.88) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.header > .container-fluid {
  min-height: 76px;
  padding-right: clamp(0.75rem, 2vw, 2rem);
  padding-left: clamp(0.75rem, 2vw, 2rem);
  background: transparent !important;
}

.navbar-logo {
  width: clamp(148px, 13vw, 214px) !important;
  max-height: 66px !important;
  object-fit: contain;
  transform-origin: left center;
}

.header .navbar {
  min-height: 76px;
  padding: 0;
}

.header .navbar .navbar-nav {
  align-items: center;
  gap: 0.18rem;
}

.header .navbar .navbar-nav .nav-item .nav-link,
.offcanvas .nav-link,
.membership-bar .nav-link {
  min-height: 42px;
  padding: 0.65rem 0.82rem;
  border: 1px solid transparent !important;
  border-radius: 6px;
  color: #efe5ca !important;
  background: transparent !important;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.header .navbar .navbar-nav .nav-item .nav-link:hover,
.header .navbar .navbar-nav .nav-item .nav-link.active,
.header .navbar .navbar-nav .nav-item .nav-link.nav-active,
.membership-bar .nav-link:hover,
.offcanvas .nav-link:hover {
  color: #fff8df !important;
  border-color: rgba(217, 173, 88, 0.28) !important;
  background: rgba(217, 173, 88, 0.08) !important;
}

.dropdown-menu {
  overflow: hidden;
  padding: 0.45rem;
  border: 1px solid rgba(217, 173, 88, 0.22);
  border-radius: var(--reborn-radius);
  background: rgba(9, 14, 18, 0.97);
  box-shadow: var(--reborn-shadow);
}

.dropdown-item {
  min-height: 36px;
  border-radius: 6px;
  color: #eadfc4;
  font-weight: 700;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff7df;
  background: rgba(53, 208, 201, 0.1);
}

.membership-bar-info,
.membership-bar-info-mobile {
  color: var(--reborn-muted);
  font-size: 0.78rem;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(217, 173, 88, 0.5);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.navbar-toggler {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217, 173, 88, 0.3) !important;
  border-radius: 6px;
  color: var(--reborn-gold-2) !important;
  background: rgba(217, 173, 88, 0.08) !important;
}

.offcanvas {
  color: var(--reborn-text);
  background:
    linear-gradient(180deg, rgba(11, 17, 21, 0.98), rgba(12, 18, 23, 0.98)),
    #0b1115;
}

.offcanvas-header,
.offcanvas-footer {
  border-color: rgba(217, 173, 88, 0.18);
}

/* Buttons */
.btn,
button.btn,
.streaming-btn,
.raf-shell .share-buttons a,
.raf-shell .share-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border: 1px solid rgba(217, 173, 88, 0.38) !important;
  border-radius: 6px !important;
  color: #110e08 !important;
  background: linear-gradient(180deg, #f3cf7e, #c28b39) !important;
  box-shadow: 0 12px 28px rgba(194, 139, 57, 0.2);
  font-weight: 800 !important;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: normal;
  transition: transform 0.16s ease, border-color 0.16s ease, filter 0.16s ease, background 0.16s ease;
}

.btn:hover,
.btn:focus,
.streaming-btn:hover,
.streaming-btn:focus,
.raf-shell .share-buttons a:hover,
.raf-shell .share-buttons button:hover {
  color: #080b0d !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn:disabled,
.btn.disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.btn-sm {
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
}

.btn-outline-primary,
.btn-outline-warning,
.btn-outline-danger,
.streaming-btn-secondary {
  color: #f4efe4 !important;
  background: rgba(17, 26, 31, 0.92) !important;
  box-shadow: none;
}

.btn-outline-primary:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.streaming-btn-secondary:hover {
  color: #fff7df !important;
  background: rgba(53, 208, 201, 0.12) !important;
}

.btn-danger,
.streaming-icon-danger {
  border-color: rgba(158, 52, 70, 0.58) !important;
  color: #fff !important;
  background: linear-gradient(180deg, #b93c50, #742637) !important;
}

.btn-reborn-primary {
  min-width: 168px;
}

/* Forms and Tables */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
  min-height: 42px;
  border: 1px solid rgba(217, 173, 88, 0.2) !important;
  border-radius: 6px !important;
  color: #f8f1df !important;
  background: rgba(7, 12, 15, 0.88) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

textarea {
  min-height: 96px;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #7e8b8d !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(53, 208, 201, 0.6) !important;
  box-shadow: 0 0 0 0.18rem rgba(53, 208, 201, 0.12) !important;
  outline: 0;
}

.input-group-text {
  min-width: 42px;
  border-color: rgba(217, 173, 88, 0.2) !important;
  border-radius: 6px 0 0 6px !important;
  color: var(--reborn-gold-2) !important;
  background: rgba(17, 24, 29, 0.94) !important;
}

.form-check-input {
  border-color: rgba(217, 173, 88, 0.4);
  background-color: #111a20;
}

.form-check-input:checked {
  border-color: var(--reborn-teal);
  background-color: var(--reborn-teal);
}

.table,
table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--reborn-text);
  --bs-table-striped-bg: rgba(217, 173, 88, 0.045);
  --bs-table-striped-color: var(--reborn-text);
  --bs-table-border-color: rgba(217, 173, 88, 0.14);
  color: var(--reborn-text);
}

.table th,
table th {
  color: #ffe4a4;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.table td,
table td {
  color: #e8ded0;
}

/* Cards and Generic CMS Boxes */
.card,
.cards,
.box,
.page_form,
.page-subbody,
.streaming-panel,
.raf-shell .raf-card,
.swal2-popup {
  border: 1px solid var(--reborn-border) !important;
  border-radius: var(--reborn-radius) !important;
  color: var(--reborn-text);
  background:
    linear-gradient(180deg, rgba(18, 25, 30, 0.96), rgba(11, 17, 21, 0.96)) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.card-header,
.card-footer,
.box-head {
  border-color: rgba(217, 173, 88, 0.16) !important;
  color: #fff2c7;
  background: rgba(217, 173, 88, 0.07) !important;
}

.card-body,
.box-body {
  color: var(--reborn-text);
}

.card img {
  border-radius: 6px;
}

.alert {
  border-radius: var(--reborn-radius);
  color: var(--reborn-text);
  background: rgba(17, 24, 29, 0.94);
}

.alert-warning {
  border-color: rgba(217, 173, 88, 0.38);
  color: #ffe0a0;
  background: rgba(87, 59, 15, 0.32);
}

.alert-danger {
  border-color: rgba(158, 52, 70, 0.48);
  color: #ffc5cc;
  background: rgba(80, 30, 41, 0.36);
}

.alert-success {
  border-color: rgba(95, 159, 115, 0.5);
  color: #c9f7d6;
  background: rgba(32, 86, 52, 0.34);
}

/* Home */
.reborn-home-hero {
  isolation: isolate;
  min-height: 640px;
  border-bottom: 1px solid rgba(217, 173, 88, 0.22);
}

.reborn-home-hero::before,
.reborn-page-hero::before,
.reborn-contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 7, 9, 0.88), rgba(4, 7, 9, 0.55) 38%, rgba(4, 7, 9, 0.18) 70%),
    linear-gradient(180deg, rgba(4, 7, 9, 0.14), rgba(4, 7, 9, 0.78));
  z-index: -1;
}

.reborn-home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 13, 16, 0), var(--reborn-bg));
}

.reborn-home-hero .container {
  position: relative;
  z-index: 2;
}

.reborn-home-hero h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  color: #fff5d6 !important;
  font-size: clamp(3rem, 6.4rem, 6.4rem);
  line-height: 0.94;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.reborn-home-hero p {
  max-width: 650px;
  color: #d9e2df !important;
  font-size: 1.05rem;
}

.reborn-home-hero .d-flex {
  gap: 0.75rem;
  flex-wrap: wrap;
}

#news-section {
  border-bottom: 1px solid rgba(217, 173, 88, 0.15) !important;
}

#news-section .row.text-center {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.reborn-news-card,
#news-section .card {
  height: 100%;
  overflow: hidden;
}

.img-height-news,
.article-image {
  width: 100%;
  height: 230px !important;
  object-fit: cover;
}

.card-img-zoom {
  overflow: hidden;
}

.card-img-zoom img {
  transition: transform 0.22s ease;
}

.card:hover .card-img-zoom img {
  transform: scale(1.035);
}

.more-section,
.countdown,
.reborn-raf-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 173, 88, 0.2) !important;
  border-radius: var(--reborn-radius);
  background-position: center;
  background-size: cover;
}

.more-section::before,
.countdown::before,
.reborn-raf-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 13, 0.84), rgba(7, 11, 13, 0.56));
}

.more-section > *,
.countdown > *,
.reborn-raf-band > * {
  position: relative;
  z-index: 1;
}

/* Internal Pages */
.reborn-page-hero {
  position: relative;
  min-height: 310px;
  padding-top: 6.4rem;
  padding-bottom: 4.6rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(217, 173, 88, 0.18);
  background-position: center;
  background-size: cover;
}

.reborn-page-hero::before {
  z-index: 0;
}

.reborn-page-hero .container {
  position: relative;
  z-index: 1;
}

.reborn-page-hero .section-heading {
  max-width: 820px;
  margin-bottom: 0.7rem;
  color: #fff5d6;
  font-size: clamp(2.3rem, 4.6rem, 4.6rem);
  line-height: 1;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.reborn-page-hero .section-description {
  max-width: 760px;
  color: #d8e2df;
  font-size: 1rem;
}

.reborn-page-body {
  min-height: 50vh;
  background:
    linear-gradient(180deg, rgba(9, 13, 16, 1), rgba(13, 19, 23, 1) 42%, rgba(9, 13, 16, 1)) !important;
}

.reborn-page-body > .container {
  max-width: 1240px;
}

/* Streaming */
.streaming-shell,
.streaming-admin {
  gap: 1.15rem;
}

.streaming-header {
  border-color: rgba(53, 208, 201, 0.28);
  border-radius: var(--reborn-radius);
  background:
    linear-gradient(135deg, rgba(53, 208, 201, 0.14), rgba(15, 21, 26, 0.94)) !important;
}

.streaming-header h2,
.streaming-panel h3 {
  color: #fff2c7;
}

.streaming-reward-pill {
  border-color: rgba(217, 173, 88, 0.42);
  background: rgba(217, 173, 88, 0.1);
}

.streaming-reward-pill span {
  color: #ffe08c;
}

.streaming-discord-banner {
  border-color: rgba(53, 208, 201, 0.28);
  border-radius: var(--reborn-radius);
  background:
    linear-gradient(135deg, rgba(53, 208, 201, 0.12), rgba(83, 66, 151, 0.12)),
    rgba(14, 21, 26, 0.94) !important;
}

.streaming-live-item,
.streaming-channel,
.streaming-empty,
.streaming-stats div,
.streaming-provider-toggle {
  border-color: rgba(217, 173, 88, 0.14);
  border-radius: var(--reborn-radius);
  background: rgba(255, 255, 255, 0.035);
}

.streaming-status {
  border: 1px solid rgba(217, 173, 88, 0.14);
}

.streaming-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 173, 88, 0.22);
  border-radius: 6px;
  color: #f4efe4;
  background: rgba(17, 26, 31, 0.92);
}

.streaming-icon-btn:hover {
  color: #fff7df;
  border-color: rgba(53, 208, 201, 0.48);
}

/* Recruit a Friend */
.raf-shell {
  --raf-bg-1: var(--reborn-bg);
  --raf-bg-2: var(--reborn-bg-2);
  --raf-panel: var(--reborn-panel);
  --raf-border: var(--reborn-border);
  --raf-accent: var(--reborn-gold);
  --raf-text: var(--reborn-text);
  --raf-muted: var(--reborn-muted);
}

.raf-shell .raf-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 11, 13, 0.9), rgba(7, 11, 13, 0.62)),
    url("../images/reborn/recruit-community-banner.png") center / cover !important;
}

.raf-shell .raf-card h4,
.raf-shell .raf-card h5 {
  color: #fff2c7;
}

.raf-shell .inp-group {
  align-items: stretch;
}

.raf-shell .share-buttons a,
.raf-shell .share-buttons button {
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  color: #f7ead0 !important;
  background: rgba(15, 22, 27, 0.92) !important;
  box-shadow: none;
}

.raf-shell details,
.raf-shell .table-responsive {
  border-radius: var(--reborn-radius);
}

/* Auth and Registration */
.type-auth .card,
.type-register .card,
.modules-auth .card {
  overflow: hidden;
}

.login-logo {
  width: min(230px, 70%);
  height: auto;
}

.modules-auth video,
.type-auth video,
.type-register video {
  display: none !important;
}

.reborn-auth-art {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(7, 11, 13, 0.08), rgba(7, 11, 13, 0.42)),
    url("../images/reborn/hero-tanados-realm.png") center / cover;
}

/* Store / Vote / Donate / Armory general polish */
.store_item,
.item_group,
.donate-item,
.vote_site,
.realm,
.ucp-box,
.character-sheet,
.armory-search,
.online-realm,
.news-article {
  border: 1px solid var(--reborn-border) !important;
  border-radius: var(--reborn-radius) !important;
  background: var(--reborn-panel) !important;
}

.pagination .page-link {
  border-color: rgba(217, 173, 88, 0.18);
  color: #f4efe4;
  background: rgba(17, 24, 29, 0.94);
}

.pagination .page-link:hover,
.pagination .active .page-link {
  color: #110e08;
  border-color: rgba(217, 173, 88, 0.5);
  background: var(--reborn-gold-2);
}

.dataTables_wrapper,
.dataTables_info,
.dataTables_length,
.dataTables_filter,
.dataTables_paginate {
  color: var(--reborn-muted) !important;
}

/* Footer */
.reborn-contact-band {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  border-top: 1px solid rgba(217, 173, 88, 0.16);
  border-bottom: 1px solid rgba(217, 173, 88, 0.16);
  background-position: center;
  background-size: cover;
}

.reborn-contact-band::before {
  z-index: 0;
}

.reborn-contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.reborn-contact-inner h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 3.2rem, 3.2rem);
}

.reborn-contact-inner p {
  max-width: 720px;
  margin-bottom: 0;
  color: #dbe4df;
}

.reborn-footer {
  padding: 4rem 0 2rem;
  background:
    linear-gradient(180deg, #0b1115, #070a0c);
}

.reborn-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr) minmax(220px, 0.75fr);
  gap: 2rem;
}

.reborn-footer h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.reborn-footer-logo img {
  width: min(240px, 80%);
  max-height: 96px;
  object-fit: contain;
}

.reborn-footer-brand p {
  max-width: 430px;
  margin-top: 1rem;
}

.reborn-social-list {
  display: grid;
  gap: 0.65rem;
}

.reborn-social-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(217, 173, 88, 0.15);
  border-radius: 6px;
  color: #f4efe4;
  background: rgba(255, 255, 255, 0.035);
}

.reborn-social-list a:hover {
  border-color: rgba(53, 208, 201, 0.45);
  background: rgba(53, 208, 201, 0.08);
}

.reborn-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(217, 173, 88, 0.14);
  color: var(--reborn-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.reborn-footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.reborn-disclaimer {
  max-width: 980px;
  margin: 1.5rem auto 0;
  color: #7f8a8f;
  font-size: 0.78rem;
  text-align: center;
}

#return-to-top {
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50% !important;
}

/* Legacy public page compatibility */
.reborn-page-body .col-lg-12 > section.section-padding.banner.bg-responsive:first-child,
.reborn-page-body .col-lg-12 > section.section-padding.banner.bg-responsive:first-child + br {
  display: none !important;
}

.reborn-page-body section,
.reborn-page-body .section,
#downloads-page {
  background-color: transparent !important;
}

.reborn-page-body section.texture,
.reborn-page-body .section.texture,
#downloads-page.texture {
  border-color: rgba(217, 173, 88, 0.14) !important;
  background-image: none !important;
}

.reborn-page-body #section,
.reborn-page-body #cards,
.reborn-page-body #class-section {
  display: block;
}

.reborn-page-body #section > section,
.reborn-page-body .section-padding.texture,
.reborn-page-body #cards.section-padding,
#downloads-page {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.reborn-page-body .heading,
.reborn-page-body .text {
  color: #fff5d6;
  font-family: var(--reborn-heading) !important;
  font-weight: 700;
}

.reborn-page-body .description {
  max-width: 780px;
  color: var(--reborn-muted);
}

.reborn-page-body .card {
  overflow: hidden;
}

.reborn-page-body .card .card-img-top,
.download-card img,
.faction-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.reborn-page-body .small-screen-bg {
  display: none !important;
}

.reborn-page-body .toggle-list,
.reborn-page-body .card ul,
.reborn-page-body .accordion-body ul {
  color: var(--reborn-muted) !important;
}

.reborn-page-body li {
  margin-bottom: 0.42rem;
}

.reborn-page-body code,
.reborn-page-body pre,
.connect-code,
.connect-code-block {
  border: 1px solid rgba(53, 208, 201, 0.2);
  border-radius: 6px;
  color: #dffefb;
  background: rgba(4, 10, 12, 0.82) !important;
}

.reborn-page-body pre,
.connect-code-block {
  padding: 1rem;
}

.accordion-item {
  overflow: hidden;
  border: 1px solid rgba(217, 173, 88, 0.15) !important;
  border-radius: var(--reborn-radius) !important;
  background: var(--reborn-panel) !important;
}

.accordion-button {
  min-height: 48px;
  color: #fff5d6 !important;
  background: rgba(15, 22, 27, 0.98) !important;
  box-shadow: none !important;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.accordion-button:not(.collapsed),
.accordion-button:hover {
  color: #0a1113 !important;
  background: linear-gradient(180deg, #f4cf7a, #c28b39) !important;
}

.accordion-body {
  color: #e6ddd0 !important;
  background: rgba(7, 12, 15, 0.78);
}

.downloads-search-section,
.downloads-section,
.connect-step,
.faction-card,
#race-container,
#class-info .card {
  border: 1px solid var(--reborn-border) !important;
  border-radius: var(--reborn-radius) !important;
  background:
    linear-gradient(180deg, rgba(18, 25, 30, 0.96), rgba(11, 17, 21, 0.96)) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.downloads-search-section,
#race-container,
#class-info .card {
  padding: 1.25rem;
}

.downloads-section {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.downloads-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: #fff2c7;
  font-size: 1.45rem;
}

.download-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.download-meta {
  display: grid;
  gap: 0.45rem;
}

.download-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(217, 173, 88, 0.11);
  border-radius: 6px;
  color: var(--reborn-muted);
  background: rgba(255, 255, 255, 0.035);
}

.download-actions,
.connect-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.connect-step {
  padding: 1rem;
}

.connect-step-number {
  color: #0a1113 !important;
  background: var(--reborn-gold-2) !important;
}

.class-icon {
  width: 58px;
  height: 58px;
  padding: 3px;
  border: 1px solid rgba(217, 173, 88, 0.28);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(7, 12, 15, 0.88);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.class-icon:hover {
  border-color: rgba(53, 208, 201, 0.56);
  transform: translateY(-2px);
}

.small-class-img {
  width: min(320px, 100%);
  max-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(217, 173, 88, 0.24);
  border-radius: var(--reborn-radius);
}

.faction-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.table-responsive,
.table-responsive-md {
  border: 1px solid rgba(217, 173, 88, 0.12);
  border-radius: var(--reborn-radius);
  background: rgba(7, 12, 15, 0.45);
}

.table-responsive table,
.table-responsive-md table {
  margin-bottom: 0;
}

.profile-link h6,
.reborn-page-body h6 {
  color: #fff1bf;
}

@media (max-width: 1199px) {
  .header > .container-fluid > .row {
    align-items: center;
  }

  .header .navbar {
    min-height: 0;
  }

  .reborn-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reborn-footer-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .reborn-home-hero {
    min-height: 620px;
    padding-top: 5rem;
  }

  .reborn-home-hero::before {
    background:
      linear-gradient(90deg, rgba(4, 7, 9, 0.9), rgba(4, 7, 9, 0.62)),
      linear-gradient(180deg, rgba(4, 7, 9, 0.22), rgba(4, 7, 9, 0.82));
  }

  .reborn-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .reborn-footer-grid {
    grid-template-columns: 1fr;
  }

  .streaming-rules {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  .header > .container-fluid {
    min-height: 64px;
  }

  .navbar-logo {
    width: 142px !important;
    max-height: 54px !important;
  }

  .reborn-home-hero {
    min-height: 610px;
  }

  .reborn-home-hero h1 {
    font-size: clamp(2.5rem, 3.6rem, 3.6rem);
  }

  .reborn-page-hero {
    min-height: 260px;
    padding-top: 4.8rem;
    padding-bottom: 3.2rem;
  }

  .reborn-page-hero .section-heading {
    font-size: clamp(2rem, 3.1rem, 3.1rem);
  }

  .img-height-news,
  .article-image {
    height: 190px !important;
  }

  .raf-shell .inp-group,
  .raf-shell form.d-flex {
    flex-direction: column;
  }

  .raf-shell .inp-group input,
  .raf-shell .inp-group button,
  .raf-shell form.d-flex > * {
    width: 100% !important;
    max-width: none !important;
  }

  .reborn-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .downloads-section,
  .downloads-search-section {
    padding: 1rem;
  }

  .download-meta-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .class-icon {
    width: 48px;
    height: 48px;
  }
}
