:root {
	--natHeader: rgba(10, 13, 24, 0.92);
	--natHeaderBorder: rgba(112, 84, 255, 0.2);
	--natHeaderHover: rgba(28, 34, 58, 0.96);
	--natHeaderShadow: rgba(0, 0, 0, 0.32);
	--bgtop: #04050b;
	--bgmid: #090d18;
	--bgbottom: #0a0d1a;
	--descriptionGray: #a6b0d6;
	--fontPrimary: 'Poppins', sans-serif;
	--fontSecondary: 'Roboto', sans-serif;
	--textColor: #dce4ff;
	--headingColor: #f3f6ff;
	--accentColor: #27b5ff;
	--accentColorAlt: #bb32ff;
}

body:before {
	background-position: top;
	background-image:
		radial-gradient(circle at 18% 18%, rgba(187, 50, 255, 0.14), transparent 28%),
		radial-gradient(circle at 82% 20%, rgba(39, 181, 255, 0.12), transparent 24%),
		linear-gradient(180deg, var(--bgtop) 0, var(--bgmid) 65%, var(--bgbottom) 100%);
	overflow: overlay
}

.NATHeader {
	display: flex;
	margin: 1.5rem 4rem;
	align-items: center;
	padding: 1rem;
	background-color: var(--natHeader) !important;
	border-radius: 1rem;
	border: var(--natHeaderBorder) 1px solid;
	box-shadow: 0 4px 12px var(--natHeaderShadow);
	transition: all 0.3s ease;
	backdrop-filter: blur(16px);
}

.NATHeader>div {
	margin: 0 .5rem
}

.NATHeader>:first-child img {
	width: 2.8rem;
	transition: transform 0.3s ease;
}

.NATHeader>:first-child img:hover {
	transform: scale(1.05);
}

.NATHeader>:nth-child(2) {
	flex-grow: 1
}

.NATHeader>:nth-child(2)>ul {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 0.5rem;
}

.NATHeader>:nth-child(2)>ul a.button {
	position: relative;
	padding: 0.7rem 1.2rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: all 0.3s ease;
}

.NATHeader>:nth-child(2)>ul a.button:after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 50%;
	background: linear-gradient(90deg, var(--accentColorAlt), var(--accentColor));
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.NATHeader>:nth-child(2)>ul a.button:hover:after {
	width: 70%;
}

.NATHeader>:nth-child(3) {
	display: flex;
	gap: 0.5rem;
}

.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	min-width: 160px;
	z-index: 100;
	top: calc(100% + 5px);
	right: 50%;
	transform: translateX(50%);
	background-color: var(--natHeader);
	border-radius: 0.8rem;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	border: 1px solid var(--natHeaderBorder);
}

.dropdown::after {
	content: '';
	position: absolute;
	height: 10px;
	width: 100%;
	bottom: -10px;
	left: 0;
	z-index: 99;
}

.dropdown-content a {
	color: white;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	transition: background-color 0.2s ease;
	font-weight: 500;
}

.dropdown-icon {
  margin-right: 8px;
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
  opacity: 0.8;
}

.dropdown-content a:hover {
	background-color: var(--natHeaderHover);
}

.dropdown-content a:hover .dropdown-icon {
  opacity: 1;
  transform: translateX(2px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown:hover .dropdown-content {
	display: block;
}

.user-dropdown .dropdown-content {
	right: 0;
	transform: none;
	min-width: 180px;
}

.NATIconButton {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background-color: rgba(255, 255, 255, 0.04);
	text-decoration: none;
	padding: .7rem;
	margin: auto .4rem;
	border-radius: 0.6rem;
	border: solid 1px transparent;
	transition: all .3s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	position: relative;
}

.user-dropdown .NATIconButton {
	background-color: rgba(255, 255, 255, 0.08);
	padding: 0.7rem 1rem;
}

.NATIconButton:hover {
	background-color: var(--natHeaderHover);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.NATIconButton svg {
	height: unset;
	margin: 0;
	width: 1rem;
	height: 1rem;
	fill: #FFFFFF;
	transition: transform 0.3s ease;
}

.NATIconButton:hover svg {
	transform: scale(1.1);
}

/* User avatar styling - matching SVG icon size */
.user-avatar {
  width: 0.65rem !important;
  height: 0.65rem !important;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  vertical-align: middle;
  margin-right: 0;
}

.username-text {
  font-size: 0.8rem;
  vertical-align: middle;
  display: inline-block;
}

.NATIconButton:hover .user-avatar {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.username-text, .login-text {
	margin-left: 0.25rem;
	font-size: 0.85rem;
	font-weight: 500;
	max-width: 100px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: all 0.3s ease;
}

.user-button {
	width: auto;
	min-width: 40px;
}

.NATThinHeading {
	font-size: 3rem;
	font-weight: 400;
	text-align: center
}

.NATSpacer1 {
	display: block;
	margin-top: 1rem
}

.NATSpacer12 {
	display: block;
	margin-top: 12rem
}

.width50 {
	width: 50%
}

.center {
	display: block;
	margin: auto
}

.alignTextLeft {
	text-align: left
}

.NATGrayDescription {
	color: var(--descriptionGray) !important;
	font-family: Exo, sans-serif !important;
	font-weight: 500 !important;
	font-size: .8rem !important
}

.NATFlexyButtons {
	display: flex;
	justify-content: center;
	align-items: center
}

.NATFlexyButtons>a {
	display: block;
	color: #fff;
	font-family: Exo, sans-serif;
	font-weight: 500;
	font-size: .8rem;
	margin: .5rem;
	padding: .5rem .8rem;
	text-align: center;
	text-decoration: none;
	background-color: var(--natHeader);
	border: var(--natHeader) 1px solid;
	border-radius: .25rem;
	min-width: 6rem;
	transition: all .25s ease
}

.NATFlexyButtons>a:hover {
	border: var(--natHeaderBorder) 1px solid;
	filter: drop-shadow(0 0 .75rem var(--natHeaderBorder))
}

.NATFlex2080 {
	display: flex
}

.NATFlex2080>:first-child {
	width: 20%;
	padding: 1rem 1rem 1rem 0
}

.NATFlex2080>:nth-child(2) {
	width: 80%
}

button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 0
}

.NATStoreFilter {
	display: block;
	box-sizing: border-box;
	padding: .5rem .5rem !important;
	background-color: var(--natHeader) !important;
	color: #fff !important;
	font-size: .6rem !important;
	border: solid var(--natHeader) 1px !important;
	transition: border .25s ease-in-out !important;
	border-radius: .25rem !important;
	font-family: Exo, sans-serif;
	margin: .5rem auto !important;
	width: 100% !important
}

.NATStoreFilter:focus {
	border: solid var(--natHeaderBorder) 1px
}

.NATStoreListings {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap
}

.NATStoreListings>div {
	width: 33%;
	padding: 2rem 1rem
}

.NATStoreListings>div img {
	width: 12.75rem;
	border-radius: .25rem
}

.NATStoreListIndents {
	text-indent: .5rem;
	margin-top: .25rem;
	cursor: pointer
}

.NATStoreListIndents:hover {
	text-decoration: underline;
	text-decoration-color: var(--natHeaderBorder);
	text-decoration-thickness: 0.1rem
}

.NATReviewFlexy {
	display: flex;
	flex-wrap: wrap;
	justify-content: center
}

.NATReviewFlexy>div {
	width: 20%;
	margin: .5rem;
	padding: 1rem;
	background-color: var(--natHeader);
	border: var(--natHeaderBorder) 1px solid;
	border-radius: .5rem
}

#container18>.wrapper>.inner {
	padding: 0
}

#container18.columns>.wrapper>.inner>* {
	padding: 1rem
}

.userPageButtons {
	justify-content: center
}

.NATSidebySide li a {
	width: fit-content !important
}

.aniFloatText .char {
	animation: aniFloatText 6s cubic-bezier(.3, 0, .7, 1) both;
	animation-delay: calc(50ms * var(--char-index));
	animation-iteration-count: infinite
}

@keyframes aniFloatText {
	0% {
		transform: translate(2%, -10%) rotate(-1deg)
	}

	50% {
		transform: translate(-2%, 5%) rotate(3deg)
	}

	100% {
		transform: translate(2%, -10%) rotate(-1deg)
	}
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accentColor);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alertBarv2 {
  padding: 0.8rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.alertBarv2:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Username and login text styling */
.username-text, .login-text {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}

/* Sliding animation for long usernames - only applies if text is longer than container */
.user-button:hover .username-text {
  overflow: visible;
  position: relative;
}

/* Only apply the sliding animation if username is too long */
.user-button:hover .username-text.long-text {
  animation: slide-text 2s linear infinite alternate;
}

@keyframes slide-text {
  0%, 25% {
    transform: translateX(0);
  }
  75%, 100% {
    transform: translateX(calc(-100% + 100px));
  }
}

/* FiveM Store Styles */
.fivem-store-section {
	padding: 1rem 0;
}

.fivem-sidebar {
	background-color: var(--natHeader);
	border-radius: 0.8rem;
	padding: 1.5rem;
	margin-right: 1rem;
	border: 1px solid var(--natHeaderBorder);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	max-height: fit-content;
	position: sticky;
	top: 2rem;
}

.fivem-filter-section {
	margin-bottom: 2rem;
}

.fivem-filter-heading {
	font-family: var(--fontPrimary);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--headingColor);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-left: 0.5rem;
}

.fivem-filter-heading i {
	color: var(--accentColor);
}

.fivem-search-input {
	background-color: rgba(0, 0, 0, 0.2) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 0.5rem !important;
	padding: 0.8rem 1rem !important;
	font-size: 0.9rem !important;
	transition: all 0.3s ease;
	outline: none !important;
	margin-left: 0.5rem !important;
	width: calc(100% - 1rem) !important;
	box-shadow: none !important;
}

.fivem-search-input:focus {
	border-color: var(--accentColor) !important;
	box-shadow: 0 0 0 2px rgba(39, 181, 255, 0.16);
}

.fivem-sort-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fivem-sort-option {
	padding: 0.5rem 0.75rem;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 0.4rem;
	font-size: 0.8rem;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.25rem;
	margin-left: 0.5rem;
	color: rgba(255, 255, 255, 0.9);
	width: 90%;
}

.fivem-sort-option:hover {
	background-color: rgba(39, 181, 255, 0.14);
	transform: translateX(5px);
}

.fivem-sort-option i {
	color: var(--accentColor);
	font-size: 0.8rem;
}

.fivem-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-left: 0.5rem;
}

.fivem-tag {
	padding: 0.35rem 0.6rem;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 0.4rem;
	font-size: 0.75rem;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.05);
	margin-bottom: 0.25rem;
	color: rgba(255, 255, 255, 0.9);
}

.fivem-tag:hover {
	background-color: rgba(39, 181, 255, 0.16);
	transform: translateY(-2px);
}

.fivem-tag.active {
	background: linear-gradient(135deg, var(--accentColorAlt), var(--accentColor));
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	transform: translateY(-2px);
}

.fivem-main-content {
	background-color: var(--natHeader);
	border-radius: 0.8rem;
	padding: 1.5rem;
	border: 1px solid var(--natHeaderBorder);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.fivem-store-heading {
	font-family: var(--fontPrimary);
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--headingColor);
	margin-bottom: 1rem;
	text-align: center;
	position: relative;
	padding-bottom: 0.5rem;
}

.fivem-category-buttons {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.fivem-category-btn {
	padding: 0.6rem 1.5rem;
	background-color: var(--natHeader);
	border: 1px solid var(--natHeaderBorder);
	border-radius: 0.5rem;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.fivem-category-btn:hover, .fivem-category-btn.active {
	background: linear-gradient(135deg, var(--accentColorAlt), var(--accentColor));
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fivem-store-heading:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, rgba(187, 50, 255, 0.15), var(--accentColorAlt), var(--accentColor), rgba(39, 181, 255, 0.15));
	border-radius: 3px;
}

.fivem-store-listings {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.fivem-resource-card {
	background-color: var(--natHeader);
	border-radius: 0.8rem;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid var(--natHeaderBorder);
	position: relative;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	height: 100%;
	outline: none;
}

.fivem-resource-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
	border-color: rgba(39, 181, 255, 0.28);
}

.fivem-resource-image {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 180px;
	border-radius: 0.8rem 0.8rem 0 0;
	background-color: rgba(0, 0, 0, 0.2); /* Placeholder color while image loads */
}

.fivem-resource-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	will-change: transform; /* Hardware acceleration hint */
	contain: content; /* Performance optimization */
}

.fivem-resource-card:hover .fivem-resource-image img {
	transform: scale(1.05);
}

.fivem-resource-content {
	padding: 0.75rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fivem-resource-title {
	font-family: var(--fontPrimary);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--headingColor);
	margin: 0;
	width: 100%;
	line-height: 1.3;
	min-height: 2.6rem;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	padding: 0.25rem 0;
}

.fivem-resource-price {
	padding: 0.3rem 0.6rem;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 0.4rem;
	font-weight: 700;
	font-size: 0.85rem;
	width: fit-content;
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	z-index: 2;
}

.fivem-price {
	color: #4CAF50;
}

.fivem-free {
	color: #2196F3;
}

.fivem-special {
	color: #F44336;
}

.fivem-resource-actions {
	padding: 0.75rem;
	display: flex;
	gap: 0.4rem;
	justify-content: space-between;
	border-top: 1px solid var(--natHeaderBorder);
	margin-top: auto;
	background-color: rgba(0, 0, 0, 0.1);
}

.fivem-btn {
	padding: 0.5rem 0.8rem;
	border-radius: 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	text-decoration: none;
	flex: 1;
}

.fivem-btn i {
	font-size: 0.8rem;
}

.fivem-btn-view {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--textColor);
}

.fivem-btn-view:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: var(--headingColor);
}

.fivem-btn-download {
	background-color: rgba(33, 150, 243, 0.2);
	color: #2196F3;
}

.fivem-btn-download:hover {
	background-color: #2196F3;
	color: white;
}

.fivem-btn-special {
	background-color: rgba(0, 162, 255, 0.2);
	/* color: #F44336; */
}

.fivem-btn-special:hover {
	background-color: rgba(76, 160, 175, 0.645);
	/* color: white; */
}

.fivem-btn-cart {
	background-color: rgba(76, 160, 175, 0.2);
	color: #4CAF50;
}

.fivem-btn-cart:hover {
	background-color: #4CAF50;
	color: white;
}

@keyframes cartPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.fivem-btn-cart.clicked {
	animation: cartPulse 0.5s ease;
	background-color: #4CAF50;
	color: white;
}

/* Scroll to top button */
.scroll-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 3rem;
	height: 3rem;
	background-color: var(--accentColor);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	opacity: 0;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	z-index: 100;
	pointer-events: none;
}

.scroll-to-top.visible {
	opacity: 1;
	pointer-events: auto;
}

.scroll-to-top:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.scroll-to-top i {
	color: white;
	font-size: 1.2rem;
}

@keyframes iconBounce {
	0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
	40% {transform: translateY(-20px);}
	60% {transform: translateY(-10px);}
}

.fivem-empty-state {
	text-align: center;
	padding: 3rem 1.5rem;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 0.8rem;
	margin: 1rem 0;
	width: 100%;
	min-height: 250px;
	border: 1px solid var(--natHeaderBorder);
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.fivem-empty-state h3 {
	font-size: 1.4rem;
	color: var(--headingColor);
	margin-bottom: 1rem;
	font-weight: 600;
}

.fivem-empty-state p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
	line-height: 1.5;
	max-width: 400px;
	margin: 0 auto;
}

.fivem-empty-state i {
	font-size: 2.8rem;
	color: var(--accentColor);
	margin-bottom: 1rem;
	opacity: 0.9;
	animation: iconBounce 2s ease infinite;
}

@media screen and (max-width:1024px) {
	.fivem-store-listings {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	}

	.fivem-resource-title {
		font-size: 1rem;
	}
}

@media screen and (max-width:768px) {
	.NATFlex2080 {
		flex-direction: column;
	}

	.NATFlex2080 > :first-child,
	.NATFlex2080 > :nth-child(2) {
		width: 100%;
		padding: 0;
	}

	.fivem-sidebar {
		margin-right: 0;
		margin-bottom: 1rem;
	}

	.fivem-tag-list {
		justify-content: center;
	}

	.fivem-store-heading {
		font-size: 1.5rem;
	}
}

@media screen and (max-width:600px) {
	.NATHeader {
		margin: 0.5rem;
		padding: 0.8rem;
		flex-wrap: wrap;
	}

	.NATHeader>:nth-child(2)>ul {
		flex-wrap: wrap;
		gap: 0.3rem;
	}

	.NATHeader>:nth-child(2)>ul a.button {
		padding: 0.5rem 0.8rem;
		font-size: 0.9rem;
	}

	.NATIconButton {
		padding: 0.5rem;
		margin: auto 0.2rem;
	}
	
	/* Hide username text on very small screens but keep the avatar */
	.username-text {
		display: none;
	}
	
	/* Ensure the login text is still visible */
	.login-text {
		max-width: 60px;
	}
	
	/* Adjust user button padding without the text */
	.user-button {
		padding: 0.5rem;
	}
	
	/* Adjust avatar size for mobile */
	.user-avatar {
		width: 0.6rem !important;
		height: 0.6rem !important;
	}

	.dropdown-content {
		position: absolute;
		right: 0;
		transform: none;
	}

	.NATHeader>:nth-child(2) .dropdown-content {
		right: auto;
		left: 0;
		width: 200px;
	}

	.NATHeader>:nth-child(3) .dropdown-content {
		right: 0;
		left: auto;
	}

	.width50 {
		width: 100%
	}

	.NATFlex2080 {
		flex-direction: column
	}

	.NATFlex2080>:first-child,
	.NATFlex2080>:nth-child(2) {
		width: 100%
	}

	.NATStoreListings {
		flex-direction: column
	}

	.NATStoreListings>div {
		width: 100%
	}
}

@media screen and (min-width:601px) and (max-width:768px) {
	.username-text {
		max-width: 60px;
	}
	
	.NATHeader {
		margin: 1rem 2rem;
	}
}
