* { margin: 0; padding: 0; box-sizing: border-box; }

*, *::before, *::after {
    cursor: default !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

body {
    cursor: default !important;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select: none;
    background: #100217; 
    background-image: radial-gradient(circle at 50% 0%, #271336, #0e0414 80%);
    color: white;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

a, 
button, 
.btn, 
.menu-item, 
.submenu-item, 
.dropdown-toggle, 
.server-status, 
.dev-credits,
.card,
.staff-card {
    cursor: pointer !important;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

input, textarea {
    cursor: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

a { text-decoration: none; color: white; transition: 0.4s ease; }
ul { list-style: none; }


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    
    background: rgba(16, 2, 23, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(228, 221, 221, 0.719);
    
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { 
    font-family: 'Kanit', sans-serif; 
    font-weight: 800; 
    font-size: 1.8rem; 
    font-style: italic; 
    letter-spacing: 2px;
    color: #fff;
}
.logo span { color: #aa4fff; } 

.nav-links { 
    display: flex; 
    gap: 30px; 
    background: transparent; 
    border: none;
    padding: 0;
}

.nav-links li a { 
    padding: 10px 0; 
    font-size: 1rem; 
    font-weight: 500; 
    color: rgba(255, 255, 255, 0.6); 
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 0;
    width: 0%; 
    height: 3px; 
    background: #aa4fff !important; 
    box-shadow: 0 0 10px #aa4fff; 
    transition: 0.3s ease;
}

.nav-links li a:hover, 
.nav-links li a.active { 
    color: #fff; /
    background: transparent;
    box-shadow: none;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
    opacity: 1 !important;
}

.nav-buttons { display: flex; align-items: center; gap: 20px; }

.server-status { 
    font-family: 'Kanit', sans-serif;
    font-size: 0.85rem; 
    color: rgba(255,255,255,0.5);
    background: transparent;
    border: 1px solid rgba(228, 221, 221, 0.719);
    padding: 8px 15px;
    border-radius: 50px; 
    display: flex; align-items: center; gap: 10px;
}
.dot { height: 8px; width: 8px; background-color: #218a48; border-radius: 50%; box-shadow: 0 0 10px #218a48; }

.btn-discord { 
    background: white; 
    color: #0f0217; 
    padding: 10px 25px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 0.9rem;
}
.btn-discord:hover { 
    background: #aa4fff; 
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(187, 59, 246, 0.4);
}


header { text-align: center; padding: 100px 20px 60px; max-width: 1000px; margin: 0 auto; }

header h1 { 
    font-family: 'Kanit', sans-serif; 
    font-size: 4.5rem; 
    font-weight: 900; 
    font-style: italic; 
    text-transform: uppercase; 
    line-height: 1; 
    margin-bottom: 20px; 
    letter-spacing: -2px;
}
header h1 span { color: #aa4fff; -webkit-text-stroke: 0; } 

header p { 
    font-size: 1.2rem; 
    color: #7d648b; 
    max-width: 600px; 
    margin: 0 auto; 
    font-weight: 300;
}


.grid-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    padding: 20px 8%; 
    max-width: 1600px; 
    margin: 0 auto; 
}

.card { 
    background: linear-gradient(180deg, #281935 0%, #230e30 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 20px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: #aa4fff;
    transform: scaleX(0); 
    transform-origin: left;
    transition: 0.4s ease;
}

.card:hover { 
    transform: translateY(-10px); 
    background: #331e3b; 
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.card:hover::after { transform: scaleX(1); } 

.icon-box { 
    width: 60px; height: 60px; 
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 15px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; 
    margin-bottom: 25px;
    transition: 0.4s;
}

.card:hover .icon-box { 
    background: #aa4fff; 
    color: white; 
    transform: rotate(-10deg) scale(1.1); 
}

.card h3 { 
    font-family: 'Kanit', sans-serif; 
    font-weight: 700; 
    font-size: 1.5rem; 
    margin-bottom: 10px; 
    color: white;
}

.card p { font-size: 0.95rem; color: #ae94b8; line-height: 1.6; }

.card a { 
    margin-top: 25px;
    color: #fff; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    opacity: 0.6;
}
.card:hover a { opacity: 1; color: #aa4fff; gap: 15px; }


.staff-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding: 40px 5%; margin: 0 auto; }

.staff-card {
    width: 300px;
    background: #1e0f2a;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.staff-img {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(228, 221, 221, 0.719); 
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.4s;
}

.staff-name { font-family: 'Kanit', sans-serif; font-size: 1.6rem; font-weight: 800; color: white; margin-bottom: 5px; }

.staff-role { 
    display: inline-block; 
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 20px; 
    padding: 8px 16px; border-radius: 100px;
    background: rgba(255,255,255,0.05); 
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.staff-desc { color: #80648b; font-size: 0.9rem; line-height: 1.6; }

.staff-card:hover { transform: translateY(-10px); }
.staff-card:hover .staff-img { transform: scale(1.05); }


.red-glow:hover { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 20px 50px -10px rgba(239, 68, 68, 0.15); }
.red-glow:hover .staff-img { border-color: #ef4444; }
.red-glow .staff-role { color: #ef4444; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }

.blue-glow:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 20px 50px -10px rgba(178, 59, 246, 0.15); }
.blue-glow:hover .staff-img { border-color: #aa4fff; }
.blue-glow .staff-role { color: #aa4fff; background: rgba(162, 59, 246, 0.1); border-color: rgba(187, 59, 246, 0.2); }

.green-glow:hover { border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 20px 50px -10px rgba(34, 197, 94, 0.15); }
.green-glow:hover .staff-img { border-color: #22c55e; }
.green-glow .staff-role { color: #22c55e; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); }

.pink-glow:hover { border-color: rgba(236, 72, 153, 0.4); box-shadow: 0 20px 50px -10px rgba(236, 72, 153, 0.15); }
.pink-glow:hover .staff-img { border-color: #ec4899; }
.pink-glow .staff-role { color: #ec4899; background: rgba(236, 72, 153, 0.1); border-color: rgba(236, 72, 153, 0.2); }


.rgb-glow { position: relative; overflow: hidden; }

.rgb-glow::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px; padding: 2px; 
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 400%;
    animation: rgb-border 4s linear infinite;
    opacity: 0.5; 
    transition: 0.3s;
}

.rgb-glow:hover::before { opacity: 1; } 
.rgb-glow:hover { box-shadow: 0 0 30px rgba(122, 0, 255, 0.2); } 

.rgb-glow .staff-role {
    background: linear-gradient(90deg, #ff0000, #002bff);
    -webkit-background-clip: text; color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 900;
}

@keyframes rgb-border { 0% { background-position: 0 0; } 100% { background-position: 400% 0; } }

.rules-wrapper { max-width: 900px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 40px; }
.rule-category {
    background: transparent; 
    border-bottom: 1px solid rgba(228, 221, 221, 0.719);
    padding: 20px 0;
}
.rule-category h3 { font-family: 'Kanit', sans-serif; font-size: 2rem; color: white; margin-bottom: 20px; }
.rule-list li { color: #aa94b8; margin-bottom: 15px; font-size: 1rem; padding-left: 20px; border-left: 2px solid #aa4fff; }

footer { text-align: center; padding: 80px 20px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 80px; background: #0f0217; }
footer h2 { font-family: 'Kanit', sans-serif; font-size: 2rem; color: #fff; opacity: 0.1; }

#page-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0f0217; z-index: 9999;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-content { position: relative; display: inline-block; }
.loader-layer {
    font-family: 'Kanit', sans-serif; font-size: 5rem; font-weight: 900; font-style: italic; text-transform: uppercase;
    padding-right: 20px; margin: 0; line-height: 1;
}
.layer-static { color: #c9cad1; position: relative; z-index: 1; }
.layer-static span { color: #aa4fff; }
.layer-shine {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    color: rgba(0,0,0,0);
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%);
    background-size: 200% 100%; background-position: 200% 0;
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: shine-pass 0.8s ease-out 0.3s 1 forwards;
}
@keyframes shine-pass { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loader-hidden { opacity: 0; visibility: hidden; }
.loader-text { color: #94a3b8; margin-top: 15px; font-size: 1rem; letter-spacing: 4px; text-transform: uppercase; text-align: center; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: 0.4; } to { opacity: 1; } }

@media (max-width: 900px) {
    nav { padding: 20px; flex-direction: column; gap: 15px; background: #0f0217; }
    .nav-links { gap: 15px; overflow-x: auto; width: 100%; justify-content: center; padding-bottom: 10px; }
    .nav-links li a { font-size: 0.85rem; padding: 5px 10px; }
    header h1, .loader-layer { font-size: 3rem; }
}

.dev-credits {
    margin-top: 30px; 
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.heart-beat {
    color: #ef4444;
    font-size: 1.2rem;
    animation: heartbeat 2s infinite ease-in-out;
    transition: 0.3s;
}

@keyframes heartbeat {
    0% { transform: scale(1); opacity: 0.7; }
    15% { transform: scale(1.3); opacity: 1; }
    30% { transform: scale(1); opacity: 0.7; }
    45% { transform: scale(1.15); opacity: 1; }
    60% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.7; }
}

.dev-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 140%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px); 
    
    background: rgba(30, 15, 42, 0.95); 
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    pointer-events: none;
}

.dev-tooltip::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(30, 15, 42, 0.95) transparent transparent transparent;
}

.dev-credits:hover .dev-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0); 
}

.dev-credits:hover .heart-beat {
    color: #ff0055; 
    animation: none; 
    transform: scale(1.2);
}


.server-status {
    cursor: pointer;
    background: rgba(30, 15, 42, 0.6);
    border: 1px solid rgba(228, 221, 221, 0.719);
    padding: 8px 15px;
    border-radius: 50px;
    display: flex; align-items: center; gap: 10px;
    transition: 0.3s;
    font-family: 'Kanit', sans-serif;
    color: white;
}

.server-status:hover {
    background: rgba(255, 255, 255, 0.1); 
    transform: scale(1.02);
    border-color: white;
}

.dot {
    height: 10px; width: 10px;
    background-color: #218a48; 
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite; 
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

#copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(50px); 
    
    background: #218a48; 
    color: white;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Kanit', sans-serif;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.5);
    z-index: 999999; 
    
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#copy-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}


.rules-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px; 
    

    width: 1200px; 
    max-width: 1200px;
    margin: 60px auto;
}

.rules-sidebar {
    width: 300px; 
    flex-shrink: 0; 
    flex-grow: 0;   
    
    position: sticky;
    top: 130px;
    
    background: rgba(34, 15, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.sidebar-header h2 { font-family: 'Kanit', sans-serif; color: white; font-size: 1.6rem; text-transform: uppercase; margin: 0; }

.rules-menu-list { list-style: none; width: 100%; }


.rules-content-box {
    width: 860px;
    flex-shrink: 0; 
    flex-grow: 0;   
    
    min-height: 600px; 
    height: auto; 
    
    background: rgba(29, 15, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 50px;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease;
}

.menu-item { padding: 16px 20px; margin-bottom: 10px; cursor: pointer; border-radius: 12px; font-weight: 500; transition: 0.3s; color: #a594b8; display: flex; justify-content: space-between; align-items: center; border: 1px solid transparent; }
.menu-item:hover { background: rgba(255, 255, 255, 0.03); color: white; transform: translateX(5px); }
.menu-item.active { background: linear-gradient(90deg, #aa4fff, #a225eb); color: white; box-shadow: 0 5px 20px rgba(162, 59, 246, 0.4); }

.rules-submenu { list-style: none; background: rgba(0, 0, 0, 0.2); border-radius: 12px; overflow: hidden; max-height: 0; opacity: 0; transition: all 0.4s ease; }
.rules-submenu:not(.hidden) { max-height: 500px; opacity: 1; margin-bottom: 10px; }
.submenu-item { padding: 12px 20px 12px 45px; cursor: pointer; color: #cbd5e1; transition: 0.2s; border-left: 2px solid transparent; }
.submenu-item:hover, .submenu-item.active { color: #aa4fff; background: rgba(156, 59, 246, 0.1); border-left-color: #aa4fff; }

.rules-content-box h1 { font-family: 'Kanit', sans-serif; font-size: 2.8rem; font-weight: 800; font-style: italic; margin-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 20px; }
.rules-content-box h1 span { color: #aa4fff; }
.text-display { color: #cbd5e1; line-height: 1.8; font-size: 1.05rem; }
.text-display h3 { color: white; font-family: 'Kanit', sans-serif; font-size: 1.6rem; margin-top: 35px; margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.text-display h3 i { color: #aa4fff; background: rgba(187, 59, 246, 0.1); padding: 8px; border-radius: 8px; }

@media (max-width: 1250px) {
    .rules-page-container { width: 95%; flex-direction: column; align-items: center; height: auto; }
    .rules-sidebar { width: 100%; position: static; margin-bottom: 30px; }
    .rules-content-box { width: 100%; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.text-display { color: #cbd5e1; line-height: 1.6; font-size: 1rem; }

.rule-category { margin-bottom: 40px; }

.rule-category h3 {
    color: white;
    font-family: 'Kanit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(240, 237, 237, 0.849);
    padding-bottom: 10px;
}
.rule-category h3 i { color: #aa4fff; }

.rule-list { list-style: none; padding: 0; }

.rule-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid rgba(187, 59, 246, 0.3); 
    transition: 0.3s;
}

.rule-list li:hover {
    border-left-color: #aa4fff; 
    background: rgba(255,255,255,0.02);
}

.rule-list li strong {
    color: #aa4fff;
    display: block; 
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Kanit', sans-serif;
}


.status-badge {
    position: absolute;
    top: 20px; right: 20px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

.badge-free {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}

.badge-taken {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.recruitment-info {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0;
    display: flex; align-items: center; gap: 8px;
}

.recruitment-open { color: #22c55e; } 
.recruitment-closed { color: #ef4444; } 

.btn-job {
    margin-top: auto; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: 0.3s;
    width: 100%;
}

.btn-job:hover {
    background: #aa4fff;
    border-color: #aa4fff;
    color: white;
}

.btn-reserve:hover {
    background: #22c55e;
    border-color: #22c55e;
}

.logo {
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.logo-img {
    height: 40px;        
    width: auto;      
    object-fit: contain;
    pointer-events: auto !important; 
    user-drag: none;
}
