/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@400;500;600;700&family=Permanent+Marker&display=swap');

:root {
    --theme-color-neon: #ff003c;
    --neon-rgb: 255, 0, 60;
    --neon-emerald: #10b981;
    --dark-bg: #05060a;
    --flux-form-bg: rgba(0, 0, 0, 0.2);
    --flux-form-border: rgba(255, 255, 255, 0.1);
    --text-field-max-width: 400px;
}

/* --- Utilities --- */
.font-tech {
    font-family: 'Orbitron', sans-serif;
}

.font-body {
    font-family: 'Rajdhani', sans-serif;
}

.font-brush {
    font-family: 'Permanent Marker', cursive;
}

.clip-path-poly {
    clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
}

.clip-button {
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

/* --- Ultra Premium Additions --- */
.noise-bg {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.text-3d {
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0, 0, 0, .1),
        0 0 5px rgba(0, 0, 0, .1),
        0 1px 3px rgba(0, 0, 0, .3),
        0 3px 5px rgba(0, 0, 0, .2),
        0 5px 10px rgba(0, 0, 0, .25),
        0 10px 10px rgba(0, 0, 0, .2),
        0 20px 20px rgba(0, 0, 0, .15);
}

.text-neon-core {
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--theme-color-neon),
        0 0 40px var(--theme-color-neon),
        0 0 80px var(--theme-color-neon),
        0 0 120px var(--theme-color-neon);
}

.floating-particle {
    position: absolute;
    background: var(--theme-color-neon);
    border-radius: 50%;
    pointer-events: none;
    animation: float-up var(--duration) linear infinite;
    opacity: var(--opacity);
    width: var(--size);
    height: var(--size);
    left: var(--left);
    top: var(--top);
    box-shadow: 0 0 10px var(--theme-color-neon), 0 0 20px var(--theme-color-neon);
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: var(--opacity);
    }

    80% {
        opacity: var(--opacity);
    }

    100% {
        transform: translateY(-150px) scale(0.5);
        opacity: 0;
    }
}

.scanline {
    width: 100%;
    height: 50px;
    z-index: 5;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(var(--neon-rgb), 0.5) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100%;
    }
}

/* --- Force Slash Trail Effect --- */
#mouse-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.energy-slash {
    position: absolute;
    background: #fff;
    border-radius: 100px;
    pointer-events: none;
    transform-origin: center;
    filter: blur(1px);
    box-shadow:
        0 0 10px #fff,
        0 0 20px var(--theme-color-neon),
        0 0 40px var(--theme-color-neon);
    animation: slash-fade var(--life) linear forwards;
}

@keyframes slash-fade {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) rotate(var(--angle)) scaleX(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--angle)) scaleX(0.1);
    }
}

.grid-overlay {
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.text-glitch:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* --- Premium Hero Animations --- */
.animate-title-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) scale(0.9) rotateX(-20deg);
    animation: cinematic-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cinematic-reveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotateX(-20deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

.text-premium-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: metallic-sweep 4s linear infinite;
}

@keyframes metallic-sweep {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.btn-premium-hover {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium-hover:hover {
    transform: translateY(-4px) scale(1.02);
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Character Animation --- */
.animate-hero-char {
    animation: hero-float 6s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 80px rgba(255, 0, 0, 0.2)) brightness(1.1) contrast(1.25);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
        filter: drop-shadow(0 0 120px rgba(255, 0, 0, 0.4)) brightness(1.2) contrast(1.3);
    }
}

/* --- Premium Mobile Menu --- */
.mobile-menu-link {
    @apply relative overflow-hidden transition-all duration-300 flex items-center gap-4 py-4 px-6 border-b border-white/5 last:border-0;
    opacity: 0;
    transform: translateX(-20px);
}

#mobile-menu.active .mobile-menu-link {
    animation: menu-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mobile-menu.active .mobile-menu-link:nth-child(2) {
    animation-delay: 0.1s;
}

#mobile-menu.active .mobile-menu-link:nth-child(3) {
    animation-delay: 0.15s;
}

#mobile-menu.active .mobile-menu-link:nth-child(4) {
    animation-delay: 0.2s;
}

#mobile-menu.active .mobile-menu-link:nth-child(5) {
    animation-delay: 0.25s;
}

#mobile-menu.active .mobile-menu-link:nth-child(6) {
    animation-delay: 0.3s;
}

#mobile-menu.active .mobile-menu-link:nth-child(7) {
    animation-delay: 0.35s;
}

@keyframes menu-slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0%;
    background: var(--theme-color-neon);
    transition: height 0.3s ease;
}

.mobile-menu-link:hover::before {
    height: 70%;
}

.mobile-menu-link:hover {
    background: rgba(var(--neon-rgb), 0.05);
    padding-left: 1.75rem;
}

.menu-icon-box {
    @apply w-10 h-10 border border-white/10 flex items-center justify-center transition-all duration-300;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.mobile-menu-link:hover .menu-icon-box {
    @apply border-red-500/50 bg-red-500/10 shadow-[0_0_15px_rgba(var(--neon-rgb), 0.2)];
    transform: scale(1.1);
}

.mobile-menu-overlay-gradient {
    background: radial-gradient(circle at top right, rgba(var(--neon-rgb), 0.15), transparent 60%),
        radial-gradient(circle at bottom left, rgba(var(--neon-rgb), 0.1), transparent 60%);
}

/* --------------------------------
 Flux Pages Design Styles
-------------------------------- */

/* Global Container for Internal Pages */
main {
    min-height: 100vh;
}

/* Container for non-main pages content */
.global-container {
    padding: 60px 40px;
    /* background: rgba(10, 11, 16, 0.7); */
    /* backdrop-filter: blur(20px); */
    /* border: 1px solid rgba(var(--neon-rgb), 0.1); */
    border-radius: 12px;
    margin-top: 8rem;
    margin-bottom: 4rem;
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); */
    font-family: 'Orbitron', sans-serif;
}

/* Headers in internal pages */
.global-container h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.global-container h2::before {
    content: '';
    display: block;
    width: 6px;
    height: 32px;
    background: var(--theme-color-neon);
    box-shadow: 0 0 15px var(--theme-color-neon);
}

.global-container h3 {
    border-bottom: none;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
}

.generic-form-div {
    background-color: var(--flux-form-bg);
    border: 1px solid var(--flux-form-border);
}

/* Tables Styling */
.horizontal-table,
.vertical-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
}

.horizontal-table th,
.vertical-table th {
    background: rgba(var(--neon-rgb), 0.1);
    color: var(--theme-color-neon);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--theme-color-neon);
}

.horizontal-table td,
.vertical-table td {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2) !important;
    /* Force dark background */
    border: 1px solid var(--flux-form-border);
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.horizontal-table tr:hover td,
.vertical-table tr:hover td {
    background: var(--flux-form-border);
    color: #fff;
}

.search-form label,
.search-form2 label {
    color: var(--theme-color-neon);
}

.character-stats .stat-value {
    color: var(--theme-color-neon) !important;
}

/* News Card Links — prevent global <a> styles from hiding title/desc */
a.news-card-link,
a.news-card-link:hover,
a.news-card-link:visited {
    color: inherit;
    text-decoration: none;
}

/* Forms Styling */
.generic-form-table,
.generic-form,
.generic-form2 {
    width: 100% !important;
    margin-bottom: 2rem;
    background: transparent !important;
    border-collapse: separate !important;
}

.generic-form-table th,
.generic-form th,
.generic-form2 th {
    width: 30%;
    padding: 1rem;
    text-align: right;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.3) !important;
    border: none !important;
}

.generic-form-table td,
.generic-form td,
.generic-form2 td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0) !important;
    border: none !important;
}

table.horizontal-table img {
    max-width: max-content;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 0.75rem 1rem;
    color: #fff;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--theme-color-neon) !important;
    box-shadow: 0 0 15px rgba(var(--neon-rgb), 0.15), inset 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Submit Buttons */
input[type="submit"],
button.default-btn {
    background: #fff;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

input[type="submit"]:hover,
button.default-btn:hover {
    background: var(--theme-color-neon);
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--neon-rgb), 0.4);
}

/* Pagination Styling */
.pages {
    margin: 2rem 0;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
}

.pages a,
.pages .current-page {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.pages a:hover {
    background: rgba(var(--neon-rgb), 0.1);
    border-color: var(--theme-color-neon);
    color: var(--theme-color-neon);
}

.pages .current-page {
    background: var(--theme-color-neon);
    border-color: var(--theme-color-neon);
    color: #fff;
    font-weight: 900;
}

/* Alerts and Messages */
.message,
.notice {
    padding: 1.25rem 2rem;
    margin: 1.5rem 0;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    position: relative;
    overflow: hidden;
}

.message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--neon-emerald);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--neon-emerald);
}

.notice {
    background: rgba(var(--neon-rgb), 0.1);
    border: 1px solid rgba(var(--neon-rgb), 0.3);
    color: var(--theme-color-neon);
    box-shadow: inset 0 0 20px rgba(var(--neon-rgb), 0.05);
}

.notice::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--theme-color-neon);
}

/* Submenu and Admin Menu */
#submenu,
.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

#submenu a,
.admin-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

#submenu a:hover,
.admin-menu a:hover {
    color: var(--theme-color-neon);
}

#submenu strong,
.admin-menu strong {
    color: #fff;
    font-weight: 800;
}

/* --- Refinements from Legacy osro_midrate --- */


/* Scrollable Tables on Mobile */
.horizontal-table,
.vertical-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Registration & Form specific labels */
.reg-label {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.security-code {
    background-color: rgba(0, 0, 0, 0.8) !important;
    /* Dark contrast for CAPTCHA */
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Sortable Table Headers */
.sortable {
    color: var(--theme-color-neon);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.sortable:hover {
    color: #fff;
    text-decoration-color: #fff;
}

/* Pagemenu and Alignment */
#pagemenu {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
}

#pagemenu a {
    color: var(--theme-color-neon);
    text-decoration: none;
    transition: all 0.3s ease;
}

#pagemenu a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--theme-color-neon);
}

/* Important / Accent text */
.important {
    color: var(--theme-color-neon) !important;
    font-weight: 700;
}

.character-stats .stat-name {
    color: var(--theme-color-neon) !important;
    font-family: 'Orbitron', sans-serif;
}

.generic-form-table td p {
    color: var(--theme-color-neon) !important;
}

.generic-form {
    border: 1px solid var(--flux-form-border) !important;
}

td .date-field {
    display: block;
    max-width: var(--text-field-max-width);
}

.date-field select {
    width: 30% !important;
    padding: 5px !important;
    margin: 0 5px;
}

.generic-form-table th,
.generic-form th,
.generic-form2 th {
    background: none !important;
}

.request {
    color: var(--theme-color-neon) !important;
}

/* Fix for long forms on mobile */
@media (max-width: 768px) {
    .generic-form-table th {
        width: 100%;
        display: block;
        text-align: left;
        padding-bottom: 0;
    }

    .generic-form-table td {
        display: block;
        width: 100%;
    }

    input[type="text"],
    input[type="password"],
    select {
        max-width: 100%;
    }
}

/* Custom Scrollbar - Premium Minimalist */
.custom-scrollbar::-webkit-scrollbar {
    width: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #374151; /* Gray 700 */
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #4b5563; /* Gray 600 */
}

/* Firefox Support */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #374151 transparent;
}