/* ==========================================================================
   Liberty State UCP  -  Portal style (dark + red, GothamPro)
   Boje preuzete iz portal/css/evolve.css:
     - red brand        #c31c35
     - red hover        #e22746
     - dark background  #1a1a1d
     - card surface     #232327
     - elevation        #2a2a2f
     - border           #38383d
     - text             #ececec
     - text mute        #b5b5b8
   ========================================================================== */

@font-face {
    font-family: 'GothamPro';
    font-weight: 100;
    font-display: swap;
    src: url('../../portal/fonts/GothamPro-Light.woff') format('woff'),
         url('../../portal/fonts/GothamPro-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'GothamPro';
    font-weight: normal;
    font-display: swap;
    src: url('../../portal/fonts/GothamPro.woff') format('woff'),
         url('../../portal/fonts/GothamPro.ttf') format('truetype');
}
@font-face {
    font-family: 'GothamPro';
    font-weight: 500;
    font-display: swap;
    src: url('../../portal/fonts/GothamPro-Medium.woff') format('woff'),
         url('../../portal/fonts/GothamPro-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'GothamPro';
    font-weight: 700;
    font-display: swap;
    src: url('../../portal/fonts/GothamPro-Bold.woff') format('woff'),
         url('../../portal/fonts/GothamPro-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'GothamPro';
    font-weight: 900;
    font-display: swap;
    src: url('../../portal/fonts/GothamPro-Black.woff') format('woff'),
         url('../../portal/fonts/GothamPro-Black.ttf') format('truetype');
}

:root {
    --red:           #c31c35;
    --red-hi:        #e22746;
    --red-lo:        #9a1428;
    --red-glow:      rgba(195, 28, 53, .35);

    --bg-deep:       #131316;
    --bg-mid:        #1a1a1d;
    --bg-card:       #232327;
    --bg-elev:       #2a2a2f;
    --bg-elev-hi:    #34343a;

    --border:        #38383d;
    --border-soft:   #2e2e33;

    --text:          #ececec;
    --text-mute:     #b5b5b8;
    --text-dim:      #7a7a80;

    --success:       #2ECC71;
    --danger:        #ff4757;
    --warning:       #f5a623;

    --r:             6px;
    --r-sm:          4px;
    --shadow:        0 6px 24px rgba(0, 0, 0, .5);
    --shadow-red:    0 6px 22px rgba(195, 28, 53, .35);
    --transition:    .18s ease;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: 'GothamPro', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(195, 28, 53, .18) 0%, transparent 60%),
        var(--bg-deep);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ----- Topbar (portal-style navMain) -------------------------------------- */
.topbar {
    background: rgba(20, 20, 23, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    margin-bottom: 36px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
}
.topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

/* Transparent wrapper on desktop — children are direct grid items */
.nav-dropdown { display: contents; }

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(195, 28, 53, .55));
    transition: var(--transition);
}
.brand:hover .brand-logo { filter: drop-shadow(0 4px 16px rgba(195, 28, 53, .8)); }
.brand-text { line-height: 1; }
.brand strong { color: var(--red); }

.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a {
    color: var(--text-mute);
    text-decoration: none;
    padding: 9px 16px;
    border-radius: var(--r-sm);
    font-size: .88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .6px;
    transition: var(--transition);
    position: relative;
}
.nav a:hover { color: #fff; }
.nav a:hover::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
}
.nav a.active { color: var(--red); }
.nav .badge-staff {
    background: linear-gradient(135deg, var(--red), var(--red-lo));
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 16px;
}
.nav .badge-staff:hover { filter: brightness(1.15); }
.nav .badge-staff:hover::after { display: none; }

.logout {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    margin-left: 6px;
}
.logout:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.user-info {
    color: var(--text-mute);
    font-size: .85rem;
    padding: 0 14px 0 18px;
    border-left: 1px solid var(--border);
    margin-left: 8px;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
}
.user-info small { display: block; color: var(--red); font-size: .76rem; margin-top: 3px; font-weight: 600; }

/* "UCP pill" highlight (portal nav-item-ucp look) */
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-lo));
    color: #fff !important;
    padding: 9px 18px !important;
    border-radius: 999px !important;
    box-shadow: var(--shadow-red);
    font-weight: 700;
}
.nav-pill::after { display: none !important; }
.nav-pill:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ----- Main ---------------------------------------------------------------- */
main { flex: 1; padding-bottom: 60px; }

h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
h1 {
    font-size: 1.7rem;
    padding-bottom: 16px;
    margin-bottom: 26px;
    position: relative;
}
h1::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 60px; height: 3px;
    background: var(--red);
    border-radius: 2px;
}
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

a { color: var(--red-hi); transition: var(--transition); text-decoration: none; }
a:hover { color: #fff; }

p { margin: 0 0 12px; }
code {
    background: var(--bg-deep);
    color: var(--red-hi);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: .88em;
    border: 1px solid var(--border);
    font-family: "Consolas", monospace;
}

/* ----- Cards --------------------------------------------------------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--red);
    border-radius: var(--r) 0 0 var(--r);
    opacity: .85;
}
.card h2 { margin-top: 0; padding-left: 0; }

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat {
    padding: 20px 22px;
    background: linear-gradient(160deg, var(--bg-elev), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--r);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.stat:hover { transform: translateY(-2px); border-color: var(--red); }
.stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--red);
}
.stat .label {
    font-size: .72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 600;
}
.stat .value {
    font-size: 1.85rem;
    color: #fff;
    margin-top: 8px;
    font-weight: 900;
    letter-spacing: -.02em;
}

/* ----- Forms --------------------------------------------------------------- */
form .row { margin-bottom: 18px; }
label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-mute);
    font-size: .82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .8px;
}
input[type=text], input[type=password], input[type=number], input[type=email],
textarea, select {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-deep);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font: inherit;
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(195, 28, 53, .22);
    background: var(--bg-mid);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; min-height: 100px; font-family: "Consolas", "Monaco", monospace; font-size: .92em; }

input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; vertical-align: middle; margin-right: 6px; }

button, .btn {
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--red), var(--red-lo));
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-red);
}
button:hover, .btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(195, 28, 53, .5);
}
button:active, .btn:active { transform: translateY(0); }

.btn-secondary {
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-secondary:hover { background: var(--bg-elev-hi); border-color: var(--red); filter: none; }

.btn-danger {
    background: linear-gradient(135deg, #d13b3b, #8a1f1f);
    box-shadow: 0 6px 18px rgba(255, 71, 87, .3);
}
.btn-danger:hover { box-shadow: 0 10px 28px rgba(255, 71, 87, .5); }

.btn-sm { padding: 7px 14px; font-size: .78rem; }
.btn-lg { padding: 16px 38px; font-size: 1rem; }

/* ----- Tables -------------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-mid);
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border);
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); }
th {
    background: var(--bg-elev);
    color: var(--red-hi);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(195, 28, 53, .06); }

/* ----- Flash --------------------------------------------------------------- */
.flash {
    padding: 14px 20px;
    border-radius: var(--r-sm);
    margin-bottom: 18px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    background: var(--bg-card);
}
.flash-success { background: rgba(46, 204, 113, .1);  color: #6FE3A0; border-color: var(--success); }
.flash-error   { background: rgba(255, 71, 87, .12);  color: #ff9aa3; border-color: var(--danger); }
.flash-info    { background: rgba(195, 28, 53, .10);  color: #ff8a99; border-color: var(--red); }

/* ----- Footer -------------------------------------------------------------- */
.footer {
    background: rgba(10,10,13,.9);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 22px 0;
    color: var(--text-dim);
    text-align: center;
    margin-top: 60px;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--text-mute); }
.footer a:hover { color: var(--red); }

/* ----- Login page ---------------------------------------------------------- */
.login-wrapper {
    max-width: 460px;
    margin: 60px auto;
}
.login-wrapper .card {
    padding: 40px 36px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(195, 28, 53, .12), 0 12px 40px rgba(195, 28, 53, .15);
}
.login-wrapper h1 {
    text-align: center;
    padding: 0;
    margin-bottom: 28px;
    font-size: 1.7rem;
}
.login-wrapper h1::after {
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
}
.login-wrapper button[type=submit] { width: 100%; margin-top: 6px; }

/* ----- Landing hero -------------------------------------------------------- */
.hero {
    text-align: center;
    padding: 70px 20px 60px;
    margin-bottom: 36px;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 80%; max-width: 600px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.hero-logo {
    width: 160px;
    height: auto;
    margin: 0 auto 28px;
    display: block;
    filter: drop-shadow(0 10px 36px rgba(195, 28, 53, .55));
    animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    margin: 0 0 16px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: -.01em;
}
.hero-title::after { display: none; }
.hero-title span {
    color: var(--red);
    text-shadow: 0 0 20px rgba(195, 28, 53, .5);
}
.hero-sub {
    color: var(--text-mute);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-bottom: 36px; }
.hero-info { max-width: 800px; margin: 0 auto; }
.hero-info code { color: var(--red-hi); font-size: 1em; padding: 5px 12px; }

/* ----- Map editor / misc --------------------------------------------------- */
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--text-dim); font-size: .9em; }
.muted code { color: var(--red-hi); }

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--bg-elev);
    color: var(--red-hi);
    font-size: .74em;
    font-weight: 700;
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .8px;
}
.tag-on  { background: rgba(46, 204, 113, .15); color: #6FE3A0; border-color: var(--success); }
.tag-off { background: rgba(255, 71, 87, .15);  color: #ff9aa3; border-color: var(--danger); }

details summary { cursor: pointer; user-select: none; }
details[open] summary { margin-bottom: 14px; }

hr { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE  (page-landing body class)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Remove container top-padding so hero can be full-width */
.page-landing main.container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    margin-top: 0;
}
/* Remove topbar margin on landing page so hero sits right below */
.page-landing .topbar { margin-bottom: 0; }

/* ---- Hero ---------------------------------------------------------------- */
.lp-hero {
    position: relative;
    min-height: calc(100vh - 82px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 80px 24px 100px;
}

/* Background video */
.lp-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: .35;
    pointer-events: none;
}

/* Dark overlay on top of video */
.lp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(11,11,14,.55) 0%, rgba(11,11,14,.35) 50%, rgba(11,11,14,.75) 100%),
        linear-gradient(160deg, rgba(11,11,14,.4) 0%, rgba(17,8,11,.5) 100%);
    z-index: 1;
}

/* Big red glow orb behind content */
.lp-hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(195,28,53,.22) 0%, rgba(195,28,53,.06) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    filter: blur(30px);
}

.lp-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Logo */
.lp-logo {
    width: 96px;
    height: auto;
    filter: drop-shadow(0 0 28px rgba(195,28,53,.7)) drop-shadow(0 4px 14px rgba(0,0,0,.6));
    animation: lp-float 5s ease-in-out infinite;
}
@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* Text block */
.lp-hero-text { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.lp-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red-hi);
    margin: 0;
    opacity: .85;
}

.lp-title {
    font-size: clamp(3rem, 8vw, 5.2rem);
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.05;
    color: #fff;
    margin: 0;
    padding-bottom: 0;
    text-shadow: 0 2px 60px rgba(195,28,53,.3);
}
.lp-title::after { display: none; }
.lp-title span {
    display: block;
    color: var(--red);
    line-height: .9;
}

.lp-sub {
    font-size: .98rem;
    color: var(--text-mute);
    max-width: 480px;
    line-height: 1.7;
    margin: 0;
}

/* Action buttons row */
.lp-hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.lp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 15px 38px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(195,28,53,.45), 0 1px 0 rgba(255,255,255,.08) inset;
    border: 1px solid rgba(255,255,255,.1);
}
.lp-cta-btn:hover {
    background: #d9213c;
    box-shadow: 0 8px 36px rgba(195,28,53,.65);
    transform: translateY(-2px);
    color: #fff;
}

.lp-cta-ghost {
    display: inline-flex;
    align-items: center;
    color: var(--text-mute);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 15px 28px;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: var(--transition);
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,.03);
}
.lp-cta-ghost:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }

/* IP Copy box — now unused wrapper, kept for compat */
.lp-ip-box { display: contents; }

/* IP group: label+IP stacked, then red copy button beside */
.lp-ip-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.lp-ip-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 16px 20px;
}

.lp-ip-label {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red-hi);
    line-height: 1;
}

.lp-ip-info code {
    font-size: .95rem;
    font-family: 'Courier New', monospace;
    color: #fff;
    background: none;
    padding: 0;
    white-space: nowrap;
    line-height: 1;
}

.lp-ip-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    appearance: none;
    -webkit-appearance: none;
    background: var(--red);
    color: #fff;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 10px 18px;
    margin: 0 14px;
    font-size: .8rem;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: 8px;
    flex-shrink: 0;
}
.lp-ip-copy:hover { background: #d9213c; transform: translateY(-1px); }

/* Vertical divider between IP group and stats */
.lp-stats-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,.08);
    flex-shrink: 0;
}

/* Bottom row: IP+copy left | divider | stats right */
.lp-hero-bottom {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 900px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

/* Stats row */
.lp-hstats {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-evenly;
    padding: 6px 0;
}

.lp-hstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 14px;
}

.lp-hstat-n {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(195,28,53,.4);
}

.lp-hstat-l {
    font-size: .65rem;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.lp-hstat-div {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,.07);
    flex-shrink: 0;
}

/* Scroll down arrow */
.lp-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.25);
    text-decoration: none;
    animation: lp-bounce 2.4s ease-in-out infinite;
    z-index: 3;
    transition: color .2s;
    line-height: 0;
}
.lp-scroll:hover { color: rgba(255,255,255,.55); }
@keyframes lp-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* ---- Sections (gallery + top players) ------------------------------------ */

/* Background image wrapper — covers everything below hero to footer */
.lp-content-bg {
    position: relative;
    background-image: url('../assets/backgroundimg.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}
.lp-content-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 13, .82);
    pointer-events: none;
    z-index: 0;
}
.lp-content-bg > * { position: relative; z-index: 1; }

.lp-section {
    padding: 90px 0;
}
.lp-section-alt {
    background: rgba(255,255,255,.03);
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.lp-shead {
    text-align: center;
    margin-bottom: 54px;
}
.lp-stitle {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 10px;
    color: #fff;
}
.lp-ssub {
    color: var(--text-mute);
    font-size: .95rem;
    margin: 0;
}

/* Slide backgrounds (shared with old lp-gcard-thumb) */
.lp-gt-1 { background: linear-gradient(135deg, #1a0a10 0%, #2d0f1a 50%, #1a0a10 100%); }
.lp-gt-2 { background: linear-gradient(135deg, #0a150d 0%, #0f2415 50%, #0a150d 100%); }
.lp-gt-3 { background: linear-gradient(135deg, #0a0f1a 0%, #0f1524 50%, #0a0f1a 100%); }
.lp-gt-4 { background: linear-gradient(135deg, #12100a 0%, #1e1a0a 50%, #12100a 100%); }

/* About section: slider + description side-by-side */
.lp-about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* Slider */
.lp-slider {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
    box-shadow: 0 16px 50px rgba(0,0,0,.4);
}

.lp-slides { position: relative; width: 100%; height: 100%; }

.lp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .65s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(195,28,53,.14) 0%, transparent 70%);
}
.lp-slide.active { opacity: 1; }

.lp-slide-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.lp-slide-ico {
    font-size: 4.5rem;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,.6));
}
.lp-slide-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff;
    background: rgba(0,0,0,.45);
    padding: 8px 22px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.1);
}

/* Arrow buttons */
.lp-sl-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    padding: 0;
}
.lp-sl-prev { left: 12px; }
.lp-sl-next { right: 12px; }
.lp-sl-btn:hover { background: var(--red); border-color: var(--red); }

/* Dots */
.lp-sl-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.lp-sl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transition: var(--transition);
}
.lp-sl-dot.active { background: var(--red); transform: scale(1.35); }

/* Description side */
.lp-about-desc {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.lp-about-title {
    font-size: 1.55rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}
.lp-about-p {
    color: var(--text-mute);
    font-size: .93rem;
    line-height: 1.7;
    margin: 0;
}
.lp-about-note { font-size: .83rem; margin: 0; }

.lp-feat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.lp-feat-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.lp-feat-ico {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 1px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.lp-feat-list li div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.lp-feat-list li strong {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.lp-feat-list li span {
    font-size: .83rem;
    color: var(--text-mute);
    line-height: 1.55;
}

/* TOP Players grid */
.lp-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-top-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 36px 28px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.lp-top-card:hover {
    border-color: rgba(195,28,53,.3);
    transform: translateY(-3px);
}
.lp-top-card h3 {
    margin: 12px 0 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}
.lp-top-card .muted {
    font-size: .82rem;
    margin: 0 0 20px;
}

.lp-top-ico {
    font-size: 2.4rem;
    line-height: 1;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.4));
}

.lp-soon {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 999px;
    background: rgba(195,28,53,.15);
    border: 1px solid rgba(195,28,53,.35);
    color: var(--red-hi);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ----- Mobile nav toggle --------------------------------------------------- */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 0;
    border-radius: var(--r-sm);
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: none;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-mute);
    border-radius: 2px;
    transition: var(--transition);
    pointer-events: none;
}
.nav-toggle:hover { border-color: var(--red); }
.nav-toggle:hover span { background: var(--red); }
.topbar-inner.nav-open .nav-toggle { border-color: var(--red); }
.topbar-inner.nav-open .nav-toggle span { background: var(--red); }
.topbar-inner.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar-inner.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.topbar-inner.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Responsive ---------------------------------------------------------- */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    h1 { font-size: 1.3rem; }
    .topbar { padding: 12px 0; margin-bottom: 22px; }

    /* Hamburger layout */
    .nav-toggle { display: flex; }
    .topbar-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0;
    }

    /* Dropdown panel — slides down on nav-open */
    .nav-dropdown {
        display: block;
        position: absolute;
        top: 100%;
        left: -16px; right: -16px;
        background: rgba(18, 18, 21, .97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid rgba(255,255,255,.06);
        box-shadow: 0 10px 28px rgba(0,0,0,.55);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .35s ease, opacity .25s ease;
        pointer-events: none;
        z-index: 99;
    }
    .topbar-inner.nav-open .nav-dropdown {
        max-height: 420px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 2px;
        padding: 10px 16px 8px;
        justify-content: initial;
    }
    .topbar-right {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 16px 14px;
        border-top: 1px solid var(--border-soft);
        justify-content: initial;
    }
    .nav a { padding: 10px 16px; text-align: center; font-size: .88rem; width: 100%; }
    /* Hide name/rank on mobile — only show logout button */
    .user-info { display: none; }
    .logout, .nav-pill {
        width: auto;
        align-self: center;
        margin: 0 auto;
        padding: 11px 36px;
        text-align: center;
        justify-content: center;
    }

    /* Cards, stats */
    .card { padding: 20px; }
    .stat .value { font-size: 1.45rem; }

    /* Tables — horizontal scroll on mobile */
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .85rem; }
    th, td { padding: 9px 11px; }

    /* Hero (old) */
    .hero { padding: 36px 16px; }
    .hero-title { font-size: 1.8rem; }
    .hero-sub { font-size: .95rem; }
    .hero-logo { width: 110px; }
    .footer .container { flex-direction: column; }

    /* LP hero */
    .lp-hero { padding: 60px 20px 80px; }
    .lp-title { font-size: 3rem; letter-spacing: 2px; }
    .lp-hero-actions { flex-direction: column; gap: 10px; width: 100%; }
    .lp-cta-btn, .lp-cta-ghost { width: 100%; justify-content: center; }

    /* LP hero bottom bar */
    .lp-hero-bottom { flex-direction: column; }
    .lp-ip-group { width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
    .lp-ip-copy { flex: 1; justify-content: center; margin: 8px 14px; border-radius: 6px; }
    .lp-stats-divider { width: 100%; height: 1px; align-self: auto; }
    .lp-hstats { flex: unset; width: 100%; }
    .lp-hstat { padding: 14px 20px; }
    .lp-hstat-n { font-size: 1.3rem; }
    .lp-hstat-div { height: 30px; }

    /* LP sections */
    .lp-about-wrap { grid-template-columns: 1fr; gap: 36px; }
    .lp-slider { aspect-ratio: 16 / 9; }
    .lp-top-grid { grid-template-columns: 1fr; }
    .lp-section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .nav a { font-size: .82rem; }
    .login-wrapper { margin: 24px auto; }
    .login-wrapper .card { padding: 26px 20px; }
    h1 { font-size: 1.15rem; }
    .card { padding: 16px; }
    .stat .value { font-size: 1.25rem; }

    /* LP */
    .lp-hero { padding: 40px 16px 60px; }
    .lp-title { font-size: 1.9rem; letter-spacing: 1px; }
    .lp-sub { font-size: .9rem; }
    .lp-stitle { font-size: 1.5rem; }

    /* IP group — stack vertically on very small screens */
    .lp-ip-group { flex-direction: column; border-bottom: none; }
    .lp-ip-info { width: 100%; align-items: center; text-align: center; padding: 14px 16px; }
    .lp-ip-copy { margin: 0; width: 100%; border-radius: 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }

    /* Collapse internal stat dividers, wrap stats */
    .lp-hstats { flex-wrap: wrap; }
    .lp-hstat { padding: 10px 14px; min-width: 80px; }
    .lp-hstat-div { display: none; }
}
