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

body {
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background: #07070b;
    color: #ffffff;
    padding: 20px;
    font-family: 'Rajdhani', sans-serif;
}

/* ============================
   NOISE TEXTURE OVERLAY
   ============================ */
#noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: noiseShift 0.5s steps(4) infinite;
}

@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5%, -5%); }
    50% { transform: translate(10%, 5%); }
    75% { transform: translate(-10%, 10%); }
}

/* ============================
   BACKGROUND
   ============================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 15% 20%, rgba(138, 43, 226, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 80%, rgba(75, 0, 130, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(88, 101, 242, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(138, 43, 226, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(75, 0, 130, 0.05) 0%, transparent 40%);
    animation: bgPulse 6s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

/* ============================
   CANVAS BACKGROUND
   ============================ */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================
   ADMIN BAR
   ============================ */
#admin-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(88, 101, 242, 0.12);
    border: 2px solid rgba(88, 101, 242, 0.35);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.08);
    position: relative;
    overflow: hidden;
}

.admin-login-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(88, 101, 242, 0.1), transparent 30%);
    animation: btnSpin 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-login-btn:hover::before {
    opacity: 1;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.admin-login-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.6);
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.25), inset 0 0 20px rgba(88, 101, 242, 0.05);
    transform: translateY(-2px);
}

.admin-login-btn i {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(138, 43, 226, 0.12);
    border: 2px solid rgba(138, 43, 226, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.admin-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.08), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.admin-info i {
    color: #8A2BE2;
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.6));
    animation: shieldPulse 2s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.6)); }
    50% { filter: drop-shadow(0 0 16px rgba(138, 43, 226, 0.9)); }
}

.admin-name {
    font-weight: 700;
    color: #e0e0e0;
    position: relative;
    z-index: 1;
}

.admin-logout-btn {
    color: rgba(255, 100, 100, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 100, 100, 0.2);
    position: relative;
    z-index: 1;
}

.admin-logout-btn:hover {
    color: #ff4444;
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 100, 100, 0.4);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.2);
}

/* ============================
   TOAST
   ============================ */
#toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
    background: rgba(12, 12, 22, 0.96);
    border: 2px solid rgba(138, 43, 226, 0.5);
    color: #ffffff;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.15), inset 0 0 25px rgba(138, 43, 226, 0.03);
    text-align: center;
    backdrop-filter: blur(10px);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    letter-spacing: 0.5px;
    font-family: 'Rajdhani', sans-serif;
}

#toast.show {
    opacity: 1;
    top: 95px;
}

#toast.success {
    border-color: rgba(0, 200, 100, 0.6);
    box-shadow: 0 0 50px rgba(0, 200, 100, 0.15);
}

#toast.error {
    border-color: rgba(255, 50, 50, 0.6);
    box-shadow: 0 0 50px rgba(255, 50, 50, 0.15);
}

/* ============================
   MAIN CONTAINER
   ============================ */
#menu {
    width: 95%;
    max-width: 1200px;
    background: rgba(8, 8, 14, 0.94);
    border: 2px solid rgba(138, 43, 226, 0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(138, 43, 226, 0.12),
        0 0 120px rgba(75, 0, 130, 0.06),
        inset 0 0 50px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: none;
    flex-direction: column;
    max-height: 93vh;
    position: relative;
    z-index: 10;
    animation: containerAppear 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(20px);
}

/* Spinning gradient border */
#menu::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 22px;
    background: conic-gradient(
        rgba(138, 43, 226, 0.4),
        rgba(88, 101, 242, 0.1),
        rgba(138, 43, 226, 0.05),
        transparent 30%,
        transparent 70%,
        rgba(138, 43, 226, 0.1),
        rgba(138, 43, 226, 0.4)
    );
    z-index: -1;
    animation: spinBorder 8s linear infinite;
    opacity: 0.6;
}

@keyframes spinBorder {
    to { transform: rotate(360deg); }
}

/* Corner bracket decorations */
#menu::after {
    content: '◆';
    position: absolute;
    top: 12px;
    right: 30px;
    font-size: 8px;
    color: rgba(138, 43, 226, 0.2);
    letter-spacing: 15px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.1);
    pointer-events: none;
    z-index: 1;
}

.corner-bracket {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: rgba(138, 43, 226, 0.2);
    border-style: solid;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
}

.corner-bracket.tl {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
    border-radius: 6px 0 0 0;
}

.corner-bracket.tr {
    top: 10px;
    right: 10px;
    border-width: 2px 2px 0 0;
    border-radius: 0 6px 0 0;
}

.corner-bracket.bl {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 6px;
}

.corner-bracket.br {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 6px 0;
}

@keyframes containerAppear {
    from {
        transform: translateY(-30px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================
   HEADER
   ============================ */
.menu-header {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.2) 0%, 
        rgba(15, 15, 25, 0.85) 40%,
        rgba(8, 8, 14, 0.95) 100%
    );
    padding: 22px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(138, 43, 226, 0.15);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Scanning line in header */
.menu-header::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(138, 43, 226, 0.5), 
        rgba(138, 43, 226, 0.8),
        #c084fc,
        rgba(138, 43, 226, 0.8),
        rgba(138, 43, 226, 0.5), 
        transparent
    );
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0.3; }
    20% { top: 0; opacity: 1; }
    80% { top: 100%; opacity: 1; }
    100% { top: 100%; opacity: 0.3; }
}

/* Header bottom glow line */
.menu-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(138, 43, 226, 0.4), 
        rgba(138, 43, 226, 0.6), 
        rgba(138, 43, 226, 0.4), 
        transparent
    );
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.header-icon {
    font-size: 42px;
    color: #8A2BE2;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.8), 0 0 60px rgba(138, 43, 226, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { text-shadow: 0 0 30px rgba(138, 43, 226, 0.8), 0 0 60px rgba(138, 43, 226, 0.3); transform: scale(1); }
    50% { text-shadow: 0 0 50px rgba(138, 43, 226, 1), 0 0 100px rgba(138, 43, 226, 0.5); transform: scale(1.05); }
}

.header-title-group {
    display: flex;
    flex-direction: column;
}

.menu-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 40%, #8A2BE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    line-height: 1.2;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.4));
    position: relative;
    display: inline-block;
}

/* Glitch effect on hover */
.menu-header h1:hover {
    animation: glitch 0.3s ease-in-out 3;
}

@keyframes glitch {
    0% { transform: translate(0); filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.4)); }
    20% { transform: translate(-2px, 1px); filter: drop-shadow(0 0 30px rgba(138, 43, 226, 0.6)); }
    40% { transform: translate(2px, -1px); filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.3)); }
    60% { transform: translate(-1px, 2px); filter: drop-shadow(0 0 35px rgba(138, 43, 226, 0.7)); }
    80% { transform: translate(1px, -2px); filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.4)); }
    100% { transform: translate(0); filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.4)); }
}

.header-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 2px;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    padding-right: 10px;
    animation: subtitleFade 1s ease 0.5s both;
}

@keyframes subtitleFade {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.admin-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(138, 43, 226, 0.12);
    border: 2px solid rgba(138, 43, 226, 0.35);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.admin-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transition: left 0.6s ease;
}

.admin-toggle-btn:hover::before {
    left: 100%;
}

.admin-toggle-btn:hover {
    background: rgba(138, 43, 226, 0.25);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.2), inset 0 0 15px rgba(138, 43, 226, 0.05);
    transform: translateY(-1px);
}

.admin-toggle-btn i {
    font-size: 16px;
    position: relative;
}

.discord-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(88, 101, 242, 0.12);
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.discord-link-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(88, 101, 242, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    transform: scale(0);
}

.discord-link-btn:hover::before {
    opacity: 1;
    transform: scale(2);
}

.discord-link-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.6);
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.25);
    transform: scale(1.1) rotate(-5deg);
}

.discord-link-btn i {
    position: relative;
    z-index: 1;
}

/* ============================
   NAVIGATION
   ============================ */
.main-nav {
    background: linear-gradient(180deg, rgba(8, 8, 14, 0.98), rgba(12, 12, 20, 0.95));
    border-bottom: 2px solid rgba(138, 43, 226, 0.1);
    padding: 0;
    flex-shrink: 0;
    position: relative;
}

.main-nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0 15px;
    flex-wrap: wrap;
}

.nav-list > li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    position: relative;
    overflow: hidden;
}

/* Active nav indicator glow */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #8A2BE2, #c084fc, #8A2BE2);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

/* Hover glow line */
.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.06), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::after {
    left: 100%;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(138, 43, 226, 0.05);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    background: rgba(138, 43, 226, 0.06);
}

.nav-link.active::before {
    width: 80%;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.6), 0 0 60px rgba(138, 43, 226, 0.2);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(138, 43, 226, 0.5), 0 0 40px rgba(138, 43, 226, 0.2); }
    50% { box-shadow: 0 0 35px rgba(138, 43, 226, 0.7), 0 0 70px rgba(138, 43, 226, 0.3); }
}

.nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.nav-link span {
    position: relative;
    z-index: 1;
}

.add-nav-page {
    opacity: 0.5;
    border-style: dashed;
    border-color: rgba(138, 43, 226, 0.25);
    border-width: 2px;
    border-radius: 8px;
    margin: 8px 6px;
    padding: 8px 18px;
    font-size: 13px;
}

.add-nav-page::before,
.add-nav-page::after {
    display: none;
}

.add-nav-page:hover {
    opacity: 1;
    border-style: solid;
    border-color: rgba(138, 43, 226, 0.6);
    background: rgba(138, 43, 226, 0.15);
}

/* ============================
   CONTENT AREA
   ============================ */
#content {
    overflow-y: auto;
    padding: 35px 40px;
    flex: 1;
    scroll-behavior: smooth;
    opacity: 0;
    animation: contentFadeIn 0.6s ease 0.3s forwards;
}

@keyframes contentFadeIn {
    to { opacity: 1; }
}

#content::-webkit-scrollbar {
    width: 8px;
}

#content::-webkit-scrollbar-track {
    background: rgba(20, 20, 30, 0.3);
    border-radius: 10px;
    margin: 5px;
}

#content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8A2BE2 0%, #4B0082 100%);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

#content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9370DB 0%, #6A0DAD 100%);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

/* ============================
   EMPTY STATE
   ============================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 25px;
    color: #8A2BE2;
    text-shadow: 0 0 50px rgba(138, 43, 226, 0.3);
    opacity: 0.6;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state p {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================
   SECTION CARDS
   ============================ */
.section {
    background: linear-gradient(135deg, 
        rgba(18, 18, 28, 0.6) 0%, 
        rgba(12, 12, 20, 0.7) 100%
    );
    border: 2px solid rgba(138, 43, 226, 0.18);
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    backdrop-filter: blur(5px);
}

/* Animated gradient overlay on section */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.04) 0%, 
        transparent 40%,
        rgba(75, 0, 130, 0.02) 100%
    );
    pointer-events: none;
    border-radius: 16px;
}

/* Corner brackets on sections */
.section .corner-bracket {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(138, 43, 226, 0.15);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section:hover .corner-bracket {
    opacity: 1;
}

.section .corner-bracket.stl {
    top: 6px;
    left: 6px;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
}

.section .corner-bracket.str {
    top: 6px;
    right: 6px;
    border-width: 2px 2px 0 0;
    border-radius: 0 4px 0 0;
}

.section .corner-bracket.sbl {
    bottom: 6px;
    left: 6px;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 4px;
}

.section .corner-bracket.sbr {
    bottom: 6px;
    right: 6px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 4px 0;
}

.section:hover {
    border-color: rgba(138, 43, 226, 0.35);
    box-shadow: 
        0 10px 50px rgba(138, 43, 226, 0.1),
        0 0 80px rgba(138, 43, 226, 0.04);
    transform: translateY(-3px);
}

/* Section top glow line */
.section::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(138, 43, 226, 0.3), 
        rgba(138, 43, 226, 0.5),
        rgba(138, 43, 226, 0.3), 
        transparent
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 2px;
}

.section:hover::after {
    opacity: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 30px;
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.1) 0%, 
        rgba(18, 18, 28, 0.4) 100%
    );
    border-bottom: 2px solid rgba(138, 43, 226, 0.1);
    position: relative;
}

/* Header glow line in section */
.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.15), transparent);
}

.section-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.section-actions .btn-move-up,
.section-actions .btn-move-down {
    width: 26px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 10px;
    transition: all 0.25s ease;
}

.section-actions .btn-move-up:hover,
.section-actions .btn-move-down:hover {
    background: rgba(138, 43, 226, 0.25);
    color: #fff;
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.15);
}

.section-actions .btn-move-up:disabled,
.section-actions .btn-move-down:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.section-title-text {
    flex: 1;
    position: relative;
}

.btn-edit-title {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.btn-edit-title:hover {
    background: rgba(138, 43, 226, 0.25);
    color: #fff;
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
    transform: scale(1.1) rotate(-10deg);
}

.btn-delete-section {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 50, 50, 0.06);
    border: 1px solid rgba(255, 50, 50, 0.15);
    border-radius: 50%;
    color: rgba(255, 100, 100, 0.6);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.btn-delete-section:hover {
    background: rgba(255, 50, 50, 0.15);
    color: #ff4444;
    border-color: rgba(255, 50, 50, 0.35);
    box-shadow: 0 0 25px rgba(255, 50, 50, 0.15);
    transform: scale(1.1);
}

/* ============================
   RULES LIST
   ============================ */
.rules-list {
    padding: 22px 30px;
    counter-reset: rule-counter;
}

.rule-item {
    background: linear-gradient(135deg, 
        rgba(8, 8, 14, 0.7) 0%, 
        rgba(10, 10, 18, 0.5) 100%
    );
    border: 1px solid rgba(138, 43, 226, 0.12);
    border-radius: 12px;
    padding: 20px 26px 20px 30px;
    margin-bottom: 14px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    counter-increment: rule-counter;
}

/* Animated left accent bar */
.rule-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(138, 43, 226, 0.5), 
        rgba(138, 43, 226, 0.2),
        rgba(138, 43, 226, 0.05)
    );
    border-radius: 2px;
    transition: all 0.35s ease;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.15);
}

/* Rule number via CSS counter */
.rule-item::after {
    content: counter(rule-counter);
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 900;
    color: rgba(138, 43, 226, 0.2);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.1);
    transition: all 0.35s ease;
    pointer-events: none;
}

.rule-item:hover::after {
    color: rgba(138, 43, 226, 0.6);
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.rule-item:hover {
    border-color: rgba(138, 43, 226, 0.3);
    background: linear-gradient(135deg, 
        rgba(12, 12, 22, 0.8) 0%, 
        rgba(15, 15, 25, 0.6) 100%
    );
    box-shadow: 
        0 5px 30px rgba(138, 43, 226, 0.08),
        0 0 50px rgba(138, 43, 226, 0.03);
    transform: translateX(6px);
}

.rule-item:hover::before {
    top: 5%;
    bottom: 5%;
    background: linear-gradient(180deg, 
        rgba(138, 43, 226, 0.8), 
        rgba(138, 43, 226, 0.3),
        rgba(138, 43, 226, 0.1)
    );
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    width: 4px;
}

.rule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rule-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.rule-title {
    font-size: 19px;
    font-weight: 700;
    color: #e8e8ff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.15);
}

.btn-edit-rule {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.18);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.btn-edit-rule:hover {
    background: rgba(138, 43, 226, 0.25);
    color: #fff;
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
    transform: scale(1.1) rotate(-10deg);
}

.rule-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rule-actions .btn-move-up,
.rule-actions .btn-move-down {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.18);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.25s ease;
}

.rule-actions .btn-move-up:hover,
.rule-actions .btn-move-down:hover {
    background: rgba(138, 43, 226, 0.25);
    color: #fff;
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.1);
}

.rule-actions .btn-move-up:disabled,
.rule-actions .btn-move-down:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.btn-delete-rule {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 50, 50, 0.05);
    border: 1px solid rgba(255, 50, 50, 0.15);
    border-radius: 6px;
    color: rgba(255, 100, 100, 0.5);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.25s ease;
}

.btn-delete-rule:hover {
    background: rgba(255, 50, 50, 0.15);
    color: #ff4444;
    border-color: rgba(255, 50, 50, 0.35);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.12);
}

.rule-description {
    margin-top: 14px;
    padding-top: 14px;
    padding-left: 4px;
    border-top: 1px solid rgba(138, 43, 226, 0.06);
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    white-space: pre-wrap;
}

.rule-description:empty {
    display: none;
}

/* ============================
   HIGHLIGHTED TEXT
   ============================ */
.rule-description .hl {
    color: #c084fc;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(138, 43, 226, 0.5), 0 0 25px rgba(138, 43, 226, 0.2);
    background: linear-gradient(180deg, transparent 60%, rgba(138, 43, 226, 0.12) 60%);
    padding: 0 4px;
    border-radius: 3px;
}

/* ============================
   TEXT EDITOR TOOLBAR
   ============================ */
.editor-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.editor-toolbar button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-toolbar button:hover {
    background: rgba(138, 43, 226, 0.2);
    color: #ffffff;
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.1);
}

.editor-toolbar .hl-preview {
    display: inline-block;
    color: #c084fc;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
}

/* ============================
   EMPTY RULES
   ============================ */
.empty-rules {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 30px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ============================
   BUTTONS
   ============================ */
.add-section-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.add-section-btn,
.add-rule-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(138, 43, 226, 0.1);
    border: 2px dashed rgba(138, 43, 226, 0.25);
    color: rgba(255, 255, 255, 0.65);
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.add-section-btn::before,
.add-rule-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.08), transparent);
    transition: left 0.5s ease;
}

.add-section-btn:hover::before,
.add-rule-btn:hover::before {
    left: 100%;
}

.add-section-btn:hover,
.add-rule-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    border-style: solid;
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 35px rgba(138, 43, 226, 0.15), inset 0 0 20px rgba(138, 43, 226, 0.05);
    color: #ffffff;
    transform: translateY(-2px);
}

.add-section-btn i,
.add-rule-btn i {
    font-size: 15px;
    position: relative;
}

.add-rule-btn {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
    padding: 11px;
    font-size: 14px;
}

/* ============================
   FOOTER
   ============================ */
.menu-footer {
    background: linear-gradient(0deg, 
        rgba(8, 8, 14, 0.98) 0%, 
        rgba(10, 10, 18, 0.85) 100%
    );
    border-top: 2px solid rgba(138, 43, 226, 0.12);
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    letter-spacing: 0.5px;
    position: relative;
}

/* Footer top glow */
.menu-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
}

.footer-discord {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(88, 101, 242, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-discord:hover {
    color: #5865F2;
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.35);
    transform: translateY(-1px);
}

.footer-discord i {
    font-size: 18px;
}

/* ============================
   MODAL
   ============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.25s ease;
    backdrop-filter: blur(10px);
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    width: 92%;
    max-width: 650px;
    max-height: 85vh;
    background: rgba(10, 10, 18, 0.98);
    border: 2px solid rgba(138, 43, 226, 0.25);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 
        0 0 80px rgba(138, 43, 226, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

/* Modal corner brackets */
.modal::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    border-top: 2px solid rgba(138, 43, 226, 0.2);
    border-left: 2px solid rgba(138, 43, 226, 0.2);
    border-radius: 4px 0 0 0;
    pointer-events: none;
}

.modal::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.2);
    border-right: 2px solid rgba(138, 43, 226, 0.2);
    border-radius: 0 0 4px 0;
    pointer-events: none;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.93);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.12) 0%, 
        rgba(10, 10, 18, 0.9) 100%
    );
    border-bottom: 2px solid rgba(138, 43, 226, 0.15);
}

.modal-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.modal-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.modal-close:hover {
    background: rgba(138, 43, 226, 0.25);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
}

.modal-body label {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-body input[type="text"],
.modal-body textarea {
    width: 100%;
    background: rgba(18, 18, 28, 0.8);
    border: 2px solid rgba(138, 43, 226, 0.2);
    padding: 14px 18px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 17px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    margin-bottom: 20px;
}

.modal-body input[type="text"]:focus,
.modal-body textarea:focus {
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.1), inset 0 0 20px rgba(138, 43, 226, 0.03);
    background: rgba(22, 22, 38, 0.9);
}

.modal-body textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.modal-body .editor-toolbar + textarea {
    margin-bottom: 4px;
}

.editor-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.editor-hint code {
    color: rgba(138, 43, 226, 0.5);
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    background: rgba(138, 43, 226, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 28px;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    background: rgba(6, 6, 10, 0.5);
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8A2BE2 0%, #5a1a9e 100%);
    color: #ffffff;
    border: 2px solid rgba(138, 43, 226, 0.35);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.05), transparent 30%);
    animation: btnSpin 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.3), inset 0 0 25px rgba(138, 43, 226, 0.08);
    background: linear-gradient(135deg, #9b3cf5 0%, #6a1db8 100%);
}

.btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: rgba(18, 18, 28, 0.6);
    color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(138, 43, 226, 0.15);
}

.btn-secondary:hover {
    background: rgba(25, 25, 40, 0.8);
    color: #ffffff;
    border-color: rgba(138, 43, 226, 0.35);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.1);
    transform: translateY(-1px);
}

/* ============================
   GLOBAL SCROLLBAR
   ============================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 30, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.45);
}

/* ============================
   SELECTION
   ============================ */
::selection {
    background: rgba(138, 43, 226, 0.35);
    color: #ffffff;
}

/* ============================
   FOCUS
   ============================ */
:focus-visible {
    outline: 2px solid rgba(138, 43, 226, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
    .nav-link {
        padding: 14px 16px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    body {
        padding: 10px;
    }

    #menu {
        width: 100%;
        max-height: 98vh;
        border-radius: 14px;
    }

    .menu-header {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-header h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .header-icon {
        font-size: 32px;
    }

    .header-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .header-right {
        gap: 8px;
    }

    .admin-toggle-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .discord-link-btn {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    #content {
        padding: 20px;
    }

    .nav-list {
        padding: 0 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        padding: 12px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    .nav-link i {
        font-size: 14px;
        width: 16px;
    }

    .section-header {
        padding: 16px 20px;
    }

    .section-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .rules-list {
        padding: 16px 20px;
    }

    .rule-item {
        padding: 16px 18px 16px 22px;
    }

    .rule-item::after {
        left: -8px;
        font-size: 10px;
    }

    .rule-title {
        font-size: 17px;
    }

    .rule-description {
        font-size: 15px;
    }

    #admin-bar {
        top: 10px;
        right: 10px;
    }

    .admin-login-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .admin-info {
        padding: 8px 14px;
        font-size: 12px;
    }

    .menu-footer {
        padding: 16px 20px;
        font-size: 13px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .modal {
        width: 95%;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 20px;
    }

    .empty-state {
        padding: 60px 20px;
    }

    .empty-state i {
        font-size: 3.5rem;
    }

    .empty-state p {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .menu-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-right {
        justify-content: center;
    }

    .menu-header h1 {
        font-size: 20px;
        letter-spacing: 1.5px;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 15px;
        letter-spacing: 0.5px;
    }

    .rule-header {
        flex-direction: column;
        align-items: stretch;
    }

    .rule-title-group {
        justify-content: space-between;
    }

    .rule-actions {
        justify-content: flex-end;
        margin-top: 8px;
    }

    #admin-bar {
        position: fixed;
        top: auto;
        bottom: 12px;
        right: 12px;
        left: 12px;
        justify-content: center;
    }

    .nav-list {
        padding: 0 5px;
    }

    .nav-link {
        padding: 10px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .nav-link i {
        font-size: 12px;
        width: 14px;
    }

    #content {
        padding: 14px;
    }

    .rules-list {
        padding: 12px 14px;
    }

    .rule-item {
        padding: 14px 14px 14px 18px;
    }

    .rule-item::after {
        display: none;
    }

    .rule-title {
        font-size: 15px;
    }

    .rule-description {
        font-size: 14px;
        line-height: 1.6;
    }
}
