/* ============================================================
   Public Common Styles — Racing Game Theme
   Dark futuristic cyan/teal on near-black, HUD-style design
   ============================================================ */

/* ========== Brand Color Variables ========== */
:root {
    /* Core: Near-black backgrounds */
    --rx-bg:        #0A0A0F;
    --rx-bg-2:      #111116;
    --rx-bg-3:      #16161E;
    --rx-bg-4:      #1C1C26;

    /* Core: Amber/Gold (primary accent — energy yellow) */
    --rx-cyan:        #FFB000;
    --rx-cyan-bright: #FFD700;
    --rx-cyan-dim:    #B8860B;
    --rx-cyan-glow:   rgba(255, 176, 0, 0.35);

    /* Core: Electric Blue (secondary accent) */
    --rx-blue:        #0080FF;
    --rx-blue-dim:    #0044AA;
    --rx-blue-glow:   rgba(0, 128, 255, 0.3);

    /* Core: Racing Red (danger/speed) */
    --rx-red:         #FF3344;
    --rx-red-dim:     #CC1122;

    /* Core: Racing Yellow (caution/highlight) */
    --rx-yellow:      #FFE066;
    --rx-yellow-dim:  #CC9900;

    /* Text */
    --rx-text:        #FFFFFF;
    --rx-text-muted:  #A8A090;
    --rx-text-dim:    #6B6358;

    /* Borders */
    --rx-border:      rgba(255, 176, 0, 0.18);
    --rx-border-2:    rgba(255, 255, 255, 0.06);

    /* Radius */
    --rx-radius-sm:   6px;
    --rx-radius-md:   10px;
    --rx-radius-lg:   16px;
    --rx-radius-xl:   24px;
}

/* ========== Font Definition ========== */
@font-face {
    font-family: myFont;
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Layui icon override — high specificity to beat global * rule */
i.layui-icon,
i.layui-icon::before,
i[class~="layui-icon"],
i[class~="layui-icon"]::before,
i[class*="layui-icon-"],
i[class*="layui-icon-"]::before,
.layui-layer .layui-layer-face,
.layui-layer .layui-layer-face::before,
.layui-layer i[class*="layui-icon-"],
.layui-layer i[class*="layui-icon-"]::before {
    font-family: "layui-icon" !important;
}

/* ========== Global Font ========== */
* { font-family: myFont !important; }

i[class*="ri-"],
i[class*="ri-"]::before { font-family: 'remixicon' !important; }
[class*="uk-icon"],
[class*="uk-icon"]::before { font-family: 'UIkit Icons' !important; }
i[class*="fa-"],
i[class*="fa-"]::before { font-family: 'Font Awesome' !important; }
svg, svg *, canvas, img { font-family: inherit !important; }

/* ========== Base Layout ========== */
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--rx-bg);
    min-width: 320px;
    overflow-x: hidden;
}

/* Background container — dark racing atmosphere */
.gm-bg-body {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 176, 0, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0A0A0F 0%, #111116 50%, #0A0A0F 100%);
    min-height: 100vh;
    position: relative;
    width: 100%;
}

/* Radius utilities */
.my-radius { border-radius: 15px; }
.my-radius2 { border-radius: 50px; }
.my-radius3 { border-radius: 30px; }

.uk-text-white { color: #FFF; }

/* ============================================================
   Public Components — Racing HUD Style
   ============================================================ */

/* ========== HUD Corner Brackets (decorative) ========== */
.tp-hud-brackets {
    position: relative;
}
.tp-hud-brackets::before,
.tp-hud-brackets::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--rx-cyan);
    pointer-events: none;
}
.tp-hud-brackets::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
}
.tp-hud-brackets::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
}

/* ========== Close Button (X) ========== */
.tp-close {
    position: absolute;
    top: -10px; right: -10px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--rx-red);
    color: white;
    font-weight: 900;
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255,51,68,0.4);
}

/* ========== Buttons — Pill shape with glow ========== */
.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.2;
}
.tp-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}
.tp-btn:active { transform: translateY(0); }

/* Cyan solid button */
.tp-btn-cyan {
    background: var(--rx-cyan);
    color: #0A0A0F;
    border-color: var(--rx-cyan-bright);
    box-shadow: 0 0 20px var(--rx-cyan-glow);
}
.tp-btn-cyan:hover {
    background: var(--rx-cyan-bright);
    color: #0A0A0F;
    box-shadow: 0 0 30px var(--rx-cyan-glow);
}

/* Ghost/outline button */
.tp-btn-ghost {
    background: transparent;
    color: var(--rx-cyan);
    border-color: var(--rx-cyan-dim);
}
.tp-btn-ghost:hover {
    background: rgba(255, 176, 0, 0.08);
    color: var(--rx-cyan-bright);
    border-color: var(--rx-cyan);
}

/* Red speed button */
.tp-btn-red {
    background: var(--rx-red);
    color: #fff;
    border-color: var(--rx-red-dim);
    box-shadow: 0 0 20px rgba(255,51,68,0.3);
}
.tp-btn-red:hover {
    background: #FF4455;
    color: #fff;
    box-shadow: 0 0 30px rgba(255,51,68,0.5);
}

/* Gold/yellow button */
.tp-btn-gold {
    background: var(--rx-yellow);
    color: #0A0A0F;
    border-color: var(--rx-yellow-dim);
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}
.tp-btn-gold:hover {
    background: #FFE033;
    color: #0A0A0F;
}

/* ========== Panel Card ========== */
.tp-card {
    position: relative;
    background: linear-gradient(180deg, var(--rx-bg-3) 0%, var(--rx-bg-2) 100%);
    border: 1px solid var(--rx-border);
    border-radius: var(--rx-radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ========== Section Title ========== */
.tp-section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    text-align: center;
    margin: 0 auto 12px;
    color: var(--rx-text);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.tp-section-title--left { text-align: left; margin-left: 0; }
.tp-section-title--center { text-align: center; }

.tp-section-subtitle {
    font-size: 1.05rem;
    text-align: center;
    color: var(--rx-text-muted);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ============================================================
   Navbar — Dark HUD style
   ============================================================ */
.tp-navbar {
    position: relative;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rx-border);
    padding: 12px 0;
    color: white;
    z-index: 90;
}
.tp-navbar .header_padding {
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
}
.tp-navbar .uk-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: center;
}
.tp-navbar .uk-grid > * {
    padding-left: 0 !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
}
.tp-navbar .uk-grid > *:nth-child(2) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
.tp-navbar .x-uk-navbar-nav {
    flex-wrap: nowrap !important;
    justify-content: right;
}
.tp-navbar .x-uk-navbar-nav li { flex-shrink: 0; }

/* Nav links */
.tp-navbar .uk-navbar-nav > li > a {
    color: var(--rx-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    padding: 10px 16px;
    border-radius: var(--rx-radius-sm);
    transition: all 0.15s;
}
.tp-navbar .uk-navbar-nav > li:hover > a,
.tp-navbar .uk-navbar-nav > li.uk-active > a {
    background: rgba(255, 176, 0, 0.08);
    color: var(--rx-cyan);
    box-shadow: inset 0 -2px 0 var(--rx-cyan);
}

/* Login button — cyan pill */
.tp-navbar .uk-button-secondary {
    background: var(--rx-cyan);
    border: 2px solid var(--rx-cyan-bright);
    color: #0A0A0F;
    padding: 8px 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 9999px;
    box-shadow: 0 0 12px var(--rx-cyan-glow);
}
.tp-navbar .uk-button-secondary:hover {
    background: var(--rx-cyan-bright);
    color: #0A0A0F;
}

/* User icon button */
.tp-navbar .uk-icon-button {
    background: var(--rx-bg-3);
    border: 1px solid var(--rx-border);
    color: var(--rx-cyan);
}

/* Logo */
.tp-navbar .zt-hero-logo {
    max-height: 60px;
    
    max-width: none !important;
    filter: brightness(1.1);
}

@media (max-width: 960px) {
    .tp-navbar { padding: 10px 0; }
}

/* ============================================================
   Footer — Dark HUD style
   ============================================================ */
.tp-footer {
    background: linear-gradient(180deg, #0A0A0F 0%, #060608 100%);
    border-top: 1px solid var(--rx-border);
    padding: 50px 0 20px;
    color: var(--rx-text-muted);
}
.tp-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 36px;
    padding: 0 24px;
}
.tp-footer-brand img {
    max-height: 48px;
    margin-bottom: 16px;
    max-width: 100%;
    filter: brightness(1.1);
}
.tp-footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 320px;
    color: var(--rx-text-dim);
    margin: 0;
}
.tp-footer-col h4 {
    color: var(--rx-cyan);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rx-border);
}
.tp-footer-col ul {  padding: 0; margin: 0; }
.tp-footer-col li { margin-bottom: 10px; }
.tp-footer-col a {
    color: var(--rx-text-dim);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.15s;
}
.tp-footer-col a:hover {
    color: var(--rx-cyan);
    text-decoration: none;
}
.tp-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px 0;
    text-align: center;
    border-top: 1px solid var(--rx-border-2);
    color: var(--rx-text-dim);
    font-size: 0.88rem;
}
.tp-footer-bottom a {
    color: var(--rx-text-dim);
    text-decoration: none;
}
.tp-footer-bottom a:hover { color: var(--rx-cyan); }

@media (max-width: 1024px) {
    .tp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .tp-footer-grid { grid-template-columns: 1fr; }
}
.list-paddingleft-2{ }
/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--rx-bg); }
::-webkit-scrollbar-thumb {
    background: var(--rx-cyan-dim);
    border-radius: 4px;
    border: 2px solid var(--rx-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--rx-cyan); }
