/* =============================================
   FiveM UCP - Gaming Theme CSS
   Optimized for dark gaming aesthetic
   ============================================= */

@font-face {
    font-family: Morabba;
    src: url('../fonts/morabba_font/fonts/Morabba-Bold.eot');
    src: url('../fonts/morabba_font/fonts/Morabba-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/morabba_font/fonts/Morabba-Bold.woff2') format('woff2'),
         url('../fonts/morabba_font/fonts/Morabba-Bold.woff') format('woff'),
         url('../fonts/morabba_font/fonts/Morabba-Bold.ttf') format('truetype');
    font-weight: bold;
  }

:root {
    --primary:       #ff7100;
    --primary-dark:  #cc5a00;
    --primary-glow:  rgba(255, 113, 0, 0.35);
    --bg-dark:       #0a0a0f;
    --bg-card:       #111118;
    --bg-card2:      #18181f;
    --border:        rgba(255, 113, 0, 0.18);
    --border-bright: rgba(255, 113, 0, 0.5);
    --text-main:     #e8e8f0;
    --text-muted:    #7a7a9a;
    --text-accent:   #ff7100;
    --success:       #00e676;
    --danger:        #ff1744;
    --info:          #00b0ff;
    --gold:          #ffd700;
    --font-fa:       'Morabba', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-fa);
    direction: rtl;
    min-height: 100vh;
}

/* Wrapper fills full height so no white gap below footer */
#wrapper {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    isolation: auto;
}

#content {
    flex: 1;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---- Navbar / Header ---- */
header.transparent {
    background: rgba(10, 10, 15, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 !important;
}

header .container { padding: 14px 20px; }

/* Logo left, nav right (RTL layout) */
header .de-flex { flex-direction: row-reverse; }
header .de-flex-col:first-child { margin-left: auto; }

#logo img { height: 44px; filter: drop-shadow(0 0 8px var(--primary)); }

#mainmenu { margin-right: 0 !important; }

#mainmenu > li > a {
    color: var(--text-main) !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all .25s;
}

#mainmenu > li > a:hover,
#mainmenu > li.active > a {
    color: var(--primary) !important;
    background: var(--primary-glow);
}

/* Icon spacing — gap between icon and text */
.fa, .fas, .fab, .far, .fa-solid, .fa-brands {
    margin-left: 5px;
}

/* ---- Buttons ---- */
.btn-main, .btn-gaming {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-main:hover, .btn-gaming:hover {
    background: linear-gradient(135deg, #ff8a2e 0%, var(--primary) 100%);
    box-shadow: 0 6px 24px rgba(255,113,0,.55);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none;
}

.btn-danger-gaming {
    background: linear-gradient(135deg, #ff1744 0%, #b71c1c 100%) !important;
    box-shadow: 0 4px 16px rgba(255,23,68,.35) !important;
}

.btn-danger-gaming:hover {
    box-shadow: 0 6px 24px rgba(255,23,68,.55) !important;
}

.btn-secondary-gaming {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
}

/* ---- Gaming Cards / nft_attr replacement ---- */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none !important;
    color: var(--text-main) !important;
    margin-bottom: 16px;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.game-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--primary-glow);
    color: var(--text-main) !important;
}

.game-card:hover::before { opacity: 1; }

.game-card .card-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.game-card .card-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.game-card .card-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.game-card .card-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- Profile Header ---- */
.gamer-profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.gamer-profile-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.gamer-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 20px var(--primary-glow);
    flex-shrink: 0;
}

.gamer-name { font-size: 22px; font-weight: 700; color: var(--text-main); margin: 0; }
.gamer-tag  { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.gamer-id   {
    display: inline-block;
    font-size: 11px;
    background: var(--primary-glow);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    padding: 2px 8px;
    color: var(--primary);
    margin-top: 6px;
    font-family: monospace;
    word-break: break-all;
}

/* ---- Tabs ---- */
.gaming-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.gaming-tab {
    padding: 8px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    transition: all .2s;
}

.gaming-tab:hover { color: var(--primary); }

.gaming-tab.active {
    color: var(--primary);
    border-color: var(--border);
    border-bottom-color: var(--bg-dark);
    background: var(--bg-card);
    margin-bottom: -1px;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---- Tables ---- */
.gaming-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.gaming-table thead tr {
    background: var(--bg-card2);
}

.gaming-table thead th {
    padding: 14px 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.gaming-table tbody tr {
    background: var(--bg-card);
    transition: background .2s;
}

.gaming-table tbody tr:hover { background: var(--bg-card2); }

.gaming-table tbody td, .gaming-table tbody th {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle;
}

.gaming-table .player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gaming-table .player-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.gaming-table .money-cell { color: var(--success); font-weight: 700; }

.badge-group {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}
.badge-admin  { background: rgba(255,113,0,.15); color: var(--primary); border: 1px solid var(--border); }
.badge-user   { background: rgba(0,176,255,.1);  color: var(--info);    border: 1px solid rgba(0,176,255,.2); }
.badge-male   { background: rgba(0,176,255,.1);  color: var(--info);    border: 1px solid rgba(0,176,255,.2); }
.badge-female { background: rgba(255,0,128,.1);  color: #ff69b4;        border: 1px solid rgba(255,0,128,.2); }

/* ---- Stats counters (index page) ---- */
.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stat-box .stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-box .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Feature boxes ---- */
.feature-box.style-3 {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 30px 24px !important;
    transition: all .3s !important;
}

.feature-box.style-3:hover {
    border-color: var(--border-bright) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 36px var(--primary-glow) !important;
}

.feature-box .i-boxed {
    background: var(--primary-glow) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--primary) !important;
}

/* ---- Service Section ---- */
.service-wrap {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 30px 20px !important;
    transition: all .3s !important;
}

.service-wrap:hover {
    border-color: var(--border-bright) !important;
    box-shadow: 0 8px 30px var(--primary-glow) !important;
    transform: translateY(-3px);
}

.service-icon { color: var(--primary) !important; }
.service-icon i { font-size: 40px !important; }

/* ---- Login box ---- */
.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.login-box .form-control {
    background: var(--bg-dark) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    transition: border-color .2s !important;
}

.login-box .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    outline: none !important;
    background: var(--bg-dark) !important;
    color: var(--text-main) !important;
}

.login-box .form-control::placeholder { color: var(--text-muted) !important; }

/* ---- Search bar ---- */
.gaming-search {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    width: 280px;
    font-size: 14px;
    transition: border-color .2s;
}

.gaming-search:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    outline: none !important;
    color: var(--text-main) !important;
}

.gaming-search::placeholder { color: var(--text-muted) !important; }

/* ---- Modal ---- */
.modal          { z-index: 1055 !important; }
.modal-backdrop { z-index: 1050 !important; }
.modal-dialog   { z-index: 1056 !important; }

.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    color: var(--text-main) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
    padding: 18px 24px !important;
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
    padding: 16px 24px !important;
}

.modal-title { color: var(--text-main) !important; font-weight: 700 !important; }
.btn-close { filter: invert(1) !important; }

/* ---- Footer ---- */
footer {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border) !important;
    padding: 48px 0 0 !important;
}

footer .widget h4, footer .widget h3 {
    color: var(--primary) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    text-transform: uppercase;
    letter-spacing: .5px;
}

footer .widget ul { list-style: none; padding: 0; margin: 0; }

footer .widget ul li { margin-bottom: 8px; }

footer .widget ul li a {
    color: var(--text-muted) !important;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}

footer .widget ul li a:hover { color: var(--primary) !important; }

.subfooter {
    background: var(--bg-dark) !important;
    border-top: 1px solid var(--border) !important;
    padding: 18px 0 !important;
    margin-top: 32px;
}

.subfooter .copy { color: var(--text-muted) !important; font-size: 13px; }

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--bg-card2) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border);
    transition: all .2s;
    font-size: 15px !important;
}

.social-icons a:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.social-icons a i { background: transparent !important; margin-left: 0 !important; }

/* ---- Section spacing ---- */
section.no-top { padding-top: 0 !important; }
section.no-bottom { padding-bottom: 0 !important; }

/* ---- Hero section ---- */
#section-hero {
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

#section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(10,10,15,.92) 0%,
        rgba(10,10,15,.6) 60%,
        rgba(255,113,0,.08) 100%);
    z-index: 0;
}

#section-hero .container { position: relative; z-index: 1; }

#section-hero h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
}

#section-hero h6 { letter-spacing: 3px; font-weight: 700; }

/* ---- Profile dropdown ---- */
#de-submenu-profile {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,.6) !important;
    direction: rtl;
    text-align: right;
    /* position/top/right controlled by inline JS */
}

/* wallet row: flex so identifier and copy button sit side by side */
#de-submenu-profile .d-wallet {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    position: static !important;
}

#de-submenu-profile .d-wallet .d-wallet-address {
    flex: 1 !important;
    font-size: 11px !important;
    word-break: break-all !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
}

#de-submenu-profile .d-wallet #btn_copy {
    position: static !important;
    flex-shrink: 0 !important;
    font-size: 11px !important;
}

.de-login-menu {
    position: relative !important;
    overflow: visible !important;
}

.menu_side_area {
    overflow: visible !important;
}

.de-flex-col {
    overflow: visible !important;
}

/* de-submenu base (for any OTHER submenus, not profile) */
.de-submenu:not(#de-submenu-profile) {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1002 !important;
}

.de-submenu:not(#de-submenu-profile).open {
    z-index: 1200 !important;
}

@media only screen and (max-width: 992px) {
    #mainmenu {
        z-index: 1100 !important;
    }
}

#de-submenu-profile h4 {
    color: var(--text-muted) !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#de-submenu-profile .d-balance { font-weight: 700; color: var(--success) !important; }

#de-submenu-profile .de-submenu-profile li a {
    color: var(--text-main) !important;
    transition: color .2s;
}

#de-submenu-profile .de-submenu-profile li a:hover { color: var(--primary) !important; }

.de-menu-profile img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary) !important;
    cursor: pointer;
}

.de-login-menu {
    position: relative !important;
}

/* ---- Back to top ---- */
#back-to-top {
    background: var(--primary) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px var(--primary-glow) !important;
}

/* ---- File upload ---- */
.file--upload label {
    background: var(--bg-card2);
    border: 1px dashed var(--border-bright);
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    font-size: 14px;
}

.file--upload label:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
}

.file--upload input[type="file"] { display: none; }

/* ---- Contact section ---- */
#contact h3 { color: var(--primary) !important; }
#contact a  { color: var(--primary) !important; }
#contact a:hover { text-decoration: underline; }

/* ---- Glow pulse animation ---- */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--primary-glow); }
    50%       { box-shadow: 0 0 24px rgba(255,113,0,.6); }
}

.glow-pulse { animation: glow-pulse 2.5s ease-in-out infinite; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .gamer-profile-header { flex-direction: column; text-align: center; padding: 20px; }
    .gaming-tabs { gap: 4px; }
    .gaming-tab  { padding: 6px 12px; font-size: 12px; }
    .gaming-search { width: 100%; }
}

