/* Reset and Base Styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    overflow: auto; 
}

body {
    min-height: 100vh;
}

/* Background */
#bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    z-index: 0;
    opacity: 1; 
    filter: brightness(0.7); 
    transition: none; 
}

.bg-image:not(.active) {
    display: none; 
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.38);
    z-index: -1;
    pointer-events: none;
    transition: background 0.7s ease;
}

#bg-overlay.dark {
    background: rgba(0, 0, 0, 0.77);
}

/* Header */
header {
    width: 100%;
    padding: 20px 60px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo-text .sub-text {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav a {
    color: #bfbfbf;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

nav a.active,
nav a:hover {
    color: #ffffff;
}

#user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logged-in-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#login-btn {
    text-decoration: none;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    transition: background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#dashboard-btn,
#admin-btn,
#logout-btn,
#dashboard-profile-btn {
    display: none !important;
    background: rgb(31, 31, 31);
    border: 1px solid #2f2f2f;
    color: #bfbfbf;
    padding: 8px 15px;
    border-radius: 5px;
    min-height: 40px;
    max-height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#dashboard-profile-btn {
    padding: 4px 15px 4px 4px !important;
    overflow: hidden;
}

#dashboard-profile-btn[style*="display: flex"] {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

#dashboard-profile-btn .profile-pic {
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

#dashboard-profile-btn span {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

#dashboard-btn:hover,
#admin-btn:hover,
#logout-btn:hover,
#dashboard-profile-btn:hover {
    background: rgba(88, 101, 242, 1);
    color: #fff;
}

#logout-btn:hover {
    background: rgba(237, 66, 69, 0.8);
}

#logout-btn[style*="display: block"],
#dashboard-btn[style*="display: block"],
#admin-btn[style*="display: block"] {
    display: block !important;
}

.profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.profile-pic:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Section - Hybrid Design */
.page {
    padding: 0;
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1600px;
    padding: 20px;
    align-items: center;
}

/* Side Content Styling */
.side-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.left-side {
    animation: slideInLeft 0.8s ease-out;
}

.right-side {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: 1px;
}

.section-text {
    font-size: 15px;
    line-height: 1.6;
    color: #d0d0d0;
    margin-bottom: 15px;
}

.status-row {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.status-indicator-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ecb6d;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.updates-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.updates-feed::-webkit-scrollbar {
    width: 4px;
}

.updates-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.updates-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.updates-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.update-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s;
}

.update-item:hover {
    background: rgba(0, 0, 0, 0.5);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.message-author {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.update-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    margin-top: 6px;
    flex-shrink: 0;
    display: none;
}

.update-item p {
    margin: 0;
    padding-left: 32px;
    font-size: 13px;
    color: #d0d0d0;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-mention {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: rgba(88, 101, 242, 0.3);
    border-radius: 3px;
    color: #ffffff;
    font-weight: 500;
    transition: background 0.2s;
}

.user-mention:hover {
    background: rgba(88, 101, 242, 0.5);
}

.mention-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.update-time {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-left: auto;
}

/* Center Hero */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    padding: 10px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.est-badge {
    position: absolute;
    bottom: 25px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.hero-title {
    font-size: 28px;
    font-weight: 300;
    margin: 0;
    color: #ffffff;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.hero-btn {
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.hero-btn.primary {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn.primary:hover {
    background: rgba(17, 17, 17, 0.664);
    transform: translateY(-1px);
}

.hero-btn.secondary {
    background: rgba(80, 80, 80, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-btn.secondary:hover {
    background: rgba(100, 100, 100, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Footer */
.footer-credit {
    position: fixed;
    bottom: 10px;
    right: 10px; 
    color: rgba(255, 255, 255, 0.4); 
    font-size: 14px;
    pointer-events: none; 
    z-index: 1000;
}

/* Dashboard Styles */
#dashboard-btn {
    display: none;
    background: rgb(31, 31, 31);
    border: 1px solid #2f2f2f;
    color: #bfbfbf;
    padding: 8px 15px;
    border-radius: 5px;
    min-height: 30px;
    max-height: 30px;
    align-items: center;
    justify-content: center;
    cursor: default;
}

/* Hide scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .content-wrapper {
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: 30px;
    }
    
    .hero-logo {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 20px 30px;
    }
    
    nav {
        position: static;
        transform: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .side-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .right-side {
        order: 3;
    }
    
    .hero-container {
        order: 1;
    }
    
    .left-side {
        order: 2;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    nav {
        gap: 20px;
    }
    
    nav a {
        font-size: 13px;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
    }
    
    #user-area {
        position: static;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-text {
        font-size: 14px;
    }
}

/* Keep these styles for other pages */
.hidden {
    display: none;
}

.box {
    background: rgba(26, 26, 26, 0.90);
    border: 1px solid #2f2f2f;
    padding: 25px;
    width: 80%;
    max-width: 900px;
    margin: auto;
    border-radius: 10px;
    backdrop-filter: blur(3px);
}

.rules-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.rules-tab {
    background: rgba(15, 15, 15);
    border: 1px solid #2f2f2f;
    padding: 10px 20px;
    color: #bfbfbf;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.rules-tab.active {
    background: rgba(26, 26, 26, 0.90);
    color: #ffffff;
}

.rules-content {
    background: rgb(15, 15, 15);
    border: 1px solid #2f2f2f;
    border-radius: 10px;
    max-width: 1000px;
    width: 90%;
    padding: 30px 40px;
    margin: 10px auto; 
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    -ms-overflow-style: none;  
    scrollbar-width: none;
}

.rules-content::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.rules-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.rules-panel.active {
    display: flex;
}

.rules-panel h3 {
    width: 100%;
    text-align: left;
    margin-bottom: 40px;
    font-size: 28px;
    color: #fff;
}

.rules-panel .rule-item {
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rules-panel .rule-item h2 {
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.rules-panel .rule-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rule-item.highlight {
    background: #0f284681; 
    border: 1px solid #3498db; 
    border-radius: 12px; 
    padding: 15px;
    color: #a9d6f5; 
    margin-bottom: 25px;
}

.rule-item.highlight h2 {
    font-weight: bold;
    font-size: 24px;
    color: #ffffff;
}

.regler-overskrift {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
}

.regler-underskrift {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: normal;
    max-width: 700px;
    color: #b4b4b4;
    font-size: 18px;
    text-align: center;
    margin: 0 auto 40px auto;
}

.regler-overskrift h3 {
    font-weight: bold;
    margin: 0;
}

.application-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 20px;
    overflow: visible;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
}

.application-box {
    background: rgba(26, 26, 26, 0.356);
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s, background 0.3s;
}

.application-box:hover {
    background: rgba(83, 83, 83, 0.233);
}

.application-box .icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 10px;
}

.application-box h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.application-box p {
    margin: 0;
    color: #bfbfbf;
    font-size: 14px;
}

.application-box .requirements {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #ccc;
    margin-top: 10px;
}

.application-box .requirements span {
    display: flex;
    align-items: center;
}

.application-box .requirements span::before {
    content: '•';
    display: inline-block;
    margin-right: 6px;
    color: #ffffff;
}

.application-box .time-estimate {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

.application-box .start-btn {
    margin-top: 15px;
    padding: 10px;
    background: #55555500;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    border: 1px solid #2f2f2f;
    cursor: pointer;
    transition: background 0.3s;
    user-select: none;
    font-weight: 500;
}

.application-box .start-btn:hover {
    background: #666666;
}

.application-box.disabled {
    opacity: 0.5;
}

.application-box.disabled .start-btn {
    pointer-events: none;
    background: #555;
}

.application-box.locked {
    opacity: 0.6;
    position: relative;
}

.application-box.locked::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0.5;
}

.application-box.locked .start-btn {
    pointer-events: none;
}

#login-required {
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #161718b3; 
    border: 1px solid #222425b3; 
    color: #fff; 
    padding: 30px 40px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    max-width: 400px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#login-required h3 {
    font-weight: bold;
    font-size: 18px;
}

#login-required p {
    font-size: 14px;
    font-weight: normal;
}

@keyframes blink-blue {
    0%, 100% { border-color: #2f2f2f00; } 
    50% { border-color: #2979ff; } 
}

.blink-blue {
    animation: blink-blue 1.2s infinite;
}

.dashboard-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.dashboard-tab {
    background: rgba(15, 15, 15);
    border: 1px solid #2f2f2f;
    padding: 10px 25px;
    color: #bfbfbf;
    align-items: center;
    text-align: center;
    height: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.dashboard-tab.active {
    background: rgba(26, 26, 26, 0.90);
    color: #ffffff;
}

.dashboard-content {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
}

.profile-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(15, 15, 15);
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    padding: 20px 30px;
    max-width: 1200px;
    margin: 30px auto 20px auto;
    backdrop-filter: blur(3px);
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-left .profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.profile-info p {
    margin: 0;
    font-size: 14px;
    color: #bfbfbf;
}

.profile-roles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #333333;
}

.profile-roles .role {
    background: rgba(40, 40, 40, 0.9);
    color: #bfbfbf;
    border: 1px solid #2f2f2f;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.link-button {
    background: rgba(40, 40, 40, 0.9);
    color: #bfbfbf;
    border: 1px solid #2f2f2f;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.link-button.unlink {
    background: #8b0000;
    border-color: #9b0000;
}

.link-button.unlink:hover {
    background: #b10c0c;
}

.character-card {
    background: rgb(15, 15, 15);
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: #4a4a4a;
    transform: translateY(-2px);
}

.character-card h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 20px;
    border-bottom: 1px solid #2f2f2f;
    padding-bottom: 10px;
}

.char-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.char-info p {
    margin: 5px 0;
    color: #bfbfbf;
    font-size: 14px;
}

.char-info strong {
    color: #fff;
}

.char-accounts {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2f2f2f;
    flex-wrap: wrap;
}

.char-accounts span {
    background: rgba(40, 40, 40, 0.9);
    color: #bfbfbf;
    border: 1px solid #2f2f2f;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   PRETTIER RULES PAGE STYLES
   ============================================ */

.rules-page {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.rules-hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.rules-main-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    letter-spacing: 2px;
}

.rules-subtitle {
    font-size: 18px;
    color: #d0d0d0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.rules-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.rule-category {
    background: transparent;
    border-radius: 16px;
    padding: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.category-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.category-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: 1px;
}

.rule-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rule-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rule-card.important {
    position: relative;
}

.rule-category-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 12px;
    margin-bottom: 10px;
    margin-top: -10px;
    color: #5865f2;
    font-size: 12px;
    font-weight: 600;
}

.rule-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.important-label-inline {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(237, 66, 69, 0.2);
    border: 1px solid rgba(237, 64, 67);
    border-radius: 12px;
    margin-bottom: 10px;
    margin-top: -10px;
    color: rgb(237, 64, 67);
    font-size: 12px;
    font-weight: 600;
}

.highlight-label-inline {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(254, 231, 92, 0.2);
    border: 1px solid #ffd700;
    border-radius: 12px;
    margin-bottom: 10px;
    margin-top: -10px;
    color: #ffd700;
    font-size: 12px;
    font-weight: 600;
}

.rule-card.important:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rule-card.highlight-card {
    background: rgba(255, 255, 255, 0.05);
}

.rule-card.highlight-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rule-content {
    flex: 1;
}

.rule-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.rule-content p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #d0d0d0;
}

.rule-content p:last-child {
    margin-bottom: 0;
}

.om-content {
    text-align: center;
    flex: 1;
}

.om-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.om-content p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #d0d0d0;
}

.om-content p:last-child {
    margin-bottom: 0;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.rule-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: #d0d0d0;
}

.rule-list li:before {
    content: '';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: 700;
}

/* Responsive Rules Page */
@media (max-width: 768px) {
    .rules-page {
        padding: 40px 15px;
    }
    
    .rules-main-title {
        font-size: 32px;
    }
    
    .rules-subtitle {
        font-size: 16px;
    }
    
    .rule-category {
        padding: 25px 20px;
    }
    
    .category-header h2 {
        font-size: 22px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    
    .rule-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .rule-number {
        align-self: flex-start;
    }
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 36px;
    color: #ffffff;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.admin-header p {
    color: #bfbfbf;
    font-size: 16px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.admin-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.admin-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.admin-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.admin-card h3 {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.admin-stat {
    color: #bfbfbf;
    font-size: 24px;
    font-weight: 600;
    margin: 15px 0;
}

.admin-btn {
    display: flex;
    background: rgb(31, 31, 31);
    border: 1px solid #2f2f2f;
    color: #bfbfbf;
    padding: 8px 15px;
    border-radius: 5px;
    min-height: 30px;
    max-height: 30px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: rgba(88, 101, 242, 1);
    transform: translateY(-2px);
}

#admin-nav-btn {
    font-weight: 600;
    position: relative;
}

#admin-nav-btn::before {
    content: '⚡';
    margin-right: 5px;
}

.admin-section {
    margin-top: 50px;
}

.admin-section h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.admin-input:focus {
    outline: none;
    border-color: rgba(88, 101, 242, 1);
}

.admin-input::placeholder {
    color: #888;
}

.admin-input option {
    background: #1a1a1a;
    color: #ffffff;
}

.admin-btn-danger {
    background: rgba(237, 66, 69, 0.8);
    border-color: rgba(237, 66, 69, 1);
}

.admin-btn-danger:hover {
    background: rgba(237, 66, 69, 1);
}

.admin-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #f59e0b;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

/* Application Form Styles */
.form-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.form-header .icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 35px;
}

.form-header h1 {
    margin: 0;
    font-size: 32px;
    color: #ffffff;
}

.form-header p {
    margin: 0;
    color: #bfbfbf;
    font-size: 16px;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #2f2f2f;
    border-radius: 12px;
    padding: 25px;
}

.form-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #5865f2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3f3f3f;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5865f2;
}

.form-group input[readonly] {
    background: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5865f2;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #5865f2;
    color: #ffffff;
}

.btn-primary:hover {
    background: #4752c4;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #3f3f3f;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }

    .form-section {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* ===================================
   RULES PAGE STYLES
   =================================== */

/* Search and Filter Bar */
.rules-search-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.search-box {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 15px;
    max-width: 1090px;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
}

#ruleSearch {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

#ruleSearch:focus {
    outline: none;
    border-color: #c98914;
}

#ruleSearch::placeholder {
    color: #888;
}

/* Category Filter Pills */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-pill {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-pill.active {
    background-color: #c98914;
    border-color: #af7813;
    color: #000;
    font-weight: 700;
}

.filter-pill i {
    font-size: 16px;
}

/* Search Results Info */
.search-results-info {
    text-align: center;
    padding: 15px;
    color: #888;
    font-size: 14px;
    display: none;
}

.search-results-info.show {
    display: block;
}

/* Highlight searched text */
.highlight {
    background: rgba(201, 137, 20, 0.3);
    color: #ffd700;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.no-results.show {
    display: block;
}

.no-results i {
    font-size: 60px;
    color: #666;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.no-results p {
    color: #888;
    font-size: 16px;
}

/* Responsive for Rules Search */
@media (max-width: 768px) {
    .category-filter {
        gap: 8px;
    }
    
    .filter-pill {
        padding: 8px 15px;
        font-size: 13px;
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4ecb6d;
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
}

#scrollTopBtn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn i {
    font-size: 20px;
}